+## @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