[svn r38821] hum, only do the precompiled greenlet if we are invoked

with install

--HG--
branch : trunk
This commit is contained in:
hpk 2007-02-14 13:51:08 +01:00
parent 0a4d47a4c7
commit f6040733dc
1 changed files with 6 additions and 5 deletions

View File

@ -135,11 +135,12 @@ def set_registry_value(reg, key, value_name, value):
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)