[Zope-Checkins] CVS: Zope/inst - build_extensions.py:1.11
Jeremy Hylton
jeremy@zope.com
Wed, 13 Nov 2002 12:53:55 -0500
Update of /cvs-repository/Zope/inst
In directory cvs.zope.org:/tmp/cvs-serv15156/inst
Modified Files:
build_extensions.py
Log Message:
Fix build_extension so that it doesn't work by import side-effect.
=== Zope/inst/build_extensions.py 1.10 => 1.11 ===
--- Zope/inst/build_extensions.py:1.10 Wed Aug 14 17:17:32 2002
+++ Zope/inst/build_extensions.py Wed Nov 13 12:53:54 2002
@@ -15,10 +15,12 @@
You must be in the directory containing this script.
"""
-from do import *
+import sys
+from do import do
-print
-print '-'*78
-print 'Building extension modules'
+def build():
+ print
+ print '-'*78
+ print 'Building extension modules'
-do('%s setup.py build_ext -i' % sys.executable)
+ do('%s setup.py build_ext -i' % sys.executable)