]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/PyUtility/setup.py
Check In tool source code based on Build tool project revision r1655.
[mirror_edk2.git] / BaseTools / Source / C / PyUtility / setup.py
diff --git a/BaseTools/Source/C/PyUtility/setup.py b/BaseTools/Source/C/PyUtility/setup.py
new file mode 100644 (file)
index 0000000..ff78af3
--- /dev/null
@@ -0,0 +1,42 @@
+## @file\r
+# package and install PyEfiCompressor extension\r
+#\r
+#  Copyright (c) 2008, Intel Corporation\r
+#\r
+#  All rights reserved. This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution.  The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+\r
+##\r
+# Import Modules\r
+#\r
+from distutils.core import setup, Extension\r
+import os\r
+\r
+if 'BASE_TOOLS_PATH' not in os.environ:\r
+    raise "Please define BASE_TOOLS_PATH to the root of base tools tree"\r
+\r
+BaseToolsDir = os.environ['BASE_TOOLS_PATH']\r
+setup(\r
+    name="PyUtility",\r
+    version="0.01",\r
+    ext_modules=[\r
+        Extension(\r
+            'PyUtility',\r
+            sources=[\r
+                'PyUtility.c'\r
+                ],\r
+            include_dirs=[\r
+                os.path.join(BaseToolsDir, 'Source', 'C', 'Include'),\r
+                os.path.join(BaseToolsDir, 'Source', 'C', 'Include', 'Ia32'),\r
+                os.path.join(BaseToolsDir, 'Source', 'C', 'Common')\r
+                ],\r
+            )\r
+        ],\r
+  )\r
+\r