]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/PyUtility/setup.py
BaseTools: Fix a bug for Size incorrect of Void* Fixatbuild Pcd
[mirror_edk2.git] / BaseTools / Source / C / PyUtility / setup.py
CommitLineData
30fdf114
LG
1## @file\r
2# package and install PyEfiCompressor extension\r
3#\r
40d841f6 4# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
30fdf114 5#\r
40d841f6 6# This program and the accompanying materials\r
30fdf114
LG
7# are licensed and made available under the terms and conditions of the BSD License\r
8# which accompanies this distribution. The full text of the license may be found at\r
9# http://opensource.org/licenses/bsd-license.php\r
10#\r
11# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13#\r
14\r
15##\r
16# Import Modules\r
17#\r
18from distutils.core import setup, Extension\r
19import os\r
20\r
21if 'BASE_TOOLS_PATH' not in os.environ:\r
22 raise "Please define BASE_TOOLS_PATH to the root of base tools tree"\r
23\r
24BaseToolsDir = os.environ['BASE_TOOLS_PATH']\r
25setup(\r
26 name="PyUtility",\r
27 version="0.01",\r
28 ext_modules=[\r
29 Extension(\r
30 'PyUtility',\r
31 sources=[\r
32 'PyUtility.c'\r
33 ],\r
34 include_dirs=[\r
35 os.path.join(BaseToolsDir, 'Source', 'C', 'Include'),\r
36 os.path.join(BaseToolsDir, 'Source', 'C', 'Include', 'Ia32'),\r
37 os.path.join(BaseToolsDir, 'Source', 'C', 'Common')\r
38 ],\r
39 )\r
40 ],\r
41 )\r
42\r