]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/PyEfiCompressor/setup.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / C / PyEfiCompressor / setup.py
1 ## @file
2 # package and install PyEfiCompressor extension
3 #
4 # Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #
8
9 ##
10 # Import Modules
11 #
12 from distutils.core import setup, Extension
13 import os
14
15 if 'BASE_TOOLS_PATH' not in os.environ:
16 raise "Please define BASE_TOOLS_PATH to the root of base tools tree"
17
18 BaseToolsDir = os.environ['BASE_TOOLS_PATH']
19 setup(
20 name="EfiCompressor",
21 version="0.01",
22 ext_modules=[
23 Extension(
24 'EfiCompressor',
25 sources=[
26 os.path.join(BaseToolsDir, 'Source', 'C', 'Common', 'Decompress.c'),
27 'EfiCompressor.c'
28 ],
29 include_dirs=[
30 os.path.join(BaseToolsDir, 'Source', 'C', 'Include'),
31 os.path.join(BaseToolsDir, 'Source', 'C', 'Include', 'Ia32'),
32 os.path.join(BaseToolsDir, 'Source', 'C', 'Common')
33 ],
34 )
35 ],
36 )
37