[py-svn] r57432 - in py/release/0.9.x/py: . misc
hpk at codespeak.net
hpk at codespeak.net
Mon Aug 18 18:01:13 CEST 2008
Author: hpk
Date: Mon Aug 18 18:01:11 2008
New Revision: 57432
Modified:
py/release/0.9.x/py/LICENSE
py/release/0.9.x/py/misc/buildcmodule.py
Log:
have a flag (disabled by default and in the release branch) for
dynamic re-compilation of c-modules.
Modified: py/release/0.9.x/py/LICENSE
==============================================================================
--- py/release/0.9.x/py/LICENSE (original)
+++ py/release/0.9.x/py/LICENSE Mon Aug 18 18:01:11 2008
@@ -16,6 +16,7 @@
Contributors include::
Samuele Pedroni
+ Chris Lamb
Harald Armin Massa
Ralf Schmitt
Ian Bicking
Modified: py/release/0.9.x/py/misc/buildcmodule.py
==============================================================================
--- py/release/0.9.x/py/misc/buildcmodule.py (original)
+++ py/release/0.9.x/py/misc/buildcmodule.py Mon Aug 18 18:01:11 2008
@@ -3,6 +3,9 @@
"""
import py
+# set to true for automatic re-compilation of extensions
+AUTOREGEN = False
+
# XXX we should distutils in a subprocess, because it messes up the
# environment and who knows what else. Currently we just save
# and restore os.environ.
@@ -32,7 +35,7 @@
lib = dirpath.join(modname+ext)
# XXX argl! we need better "build"-locations alltogether!
- if lib.check() and lib.stat().mtime < cfile.stat().mtime:
+ if lib.check() and AUTOREGEN and lib.stat().mtime < cfile.stat().mtime:
try:
lib.remove()
except EnvironmentError:
More information about the pytest-commit
mailing list