[Zope-CVS] CVS: Zope3 - stupid_build.py:1.5
Fred L. Drake, Jr.
fdrake@acm.org
Tue, 13 Aug 2002 13:02:08 -0400
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv14118
Modified Files:
stupid_build.py
Log Message:
Add support for the shared include directory.
=== Zope3/stupid_build.py 1.4 => 1.5 ===
--- Zope3/stupid_build.py:1.4 Tue Jun 25 12:56:35 2002
+++ Zope3/stupid_build.py Tue Aug 13 13:02:08 2002
@@ -51,11 +51,19 @@
args = tuple(sys.argv[1:])
if not args:
args = ('clean',)
+ try:
+ __file__
+ except NameError:
+ includes = os.path.dirname(sys.argv[0])
+ else:
+ includes = os.path.dirname(__file__)
+ includes = os.path.join(os.path.abspath(includes), "include")
for dir in setup_dirs:
print "Building extensions in %s" % dir
os.chdir(dir)
os.spawnl(os.P_WAIT, sys.executable,
- sys.executable, "setup.py", 'build_ext', '-i', *args)
+ sys.executable, "setup.py", 'build_ext', '-i',
+ '-I', includes, *args)
print
if __name__ == "__main__":