[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): def setup(pkg, **kw):
""" invoke distutils on a given package. """ invoke distutils on a given package.
""" """
print "precompiling greenlet module" if 'install' in sys.argv[1:]:
try: print "precompiling greenlet module"
x = py.magic.greenlet() try:
except (RuntimeError, ImportError): x = py.magic.greenlet()
print "could not precompile greenlet module, skipping" except (RuntimeError, ImportError):
print "could not precompile greenlet module, skipping"
params = Params(pkg) params = Params(pkg)
#dump(params) #dump(params)