[py-svn] r38821 - py/trunk/py/misc

hpk at codespeak.net hpk at codespeak.net
Wed Feb 14 13:51:08 CET 2007


Author: hpk
Date: Wed Feb 14 13:51:08 2007
New Revision: 38821

Modified:
   py/trunk/py/misc/_dist.py
Log:
hum, only do the precompiled greenlet if we are invoked 
with install


Modified: py/trunk/py/misc/_dist.py
==============================================================================
--- py/trunk/py/misc/_dist.py	(original)
+++ py/trunk/py/misc/_dist.py	Wed Feb 14 13:51:08 2007
@@ -135,11 +135,12 @@
 def setup(pkg, **kw): 
     """ invoke distutils on a given package. 
     """
-    print "precompiling greenlet module" 
-    try:
-        x = py.magic.greenlet()
-    except (RuntimeError, ImportError):
-        print "could not precompile greenlet module, skipping"
+    if 'install' in sys.argv[1:]:
+        print "precompiling greenlet module" 
+        try:
+            x = py.magic.greenlet()
+        except (RuntimeError, ImportError):
+            print "could not precompile greenlet module, skipping"
 
     params = Params(pkg)
     #dump(params)



More information about the pytest-commit mailing list