[pypy-commit] cffi default: Hack to support, on top of CPython, older versions of pycparser
arigo
noreply at buildbot.pypy.org
Fri Apr 5 14:22:27 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1234:c2539e8cdc21
Date: 2013-04-05 14:22 +0200
http://bitbucket.org/cffi/cffi/changeset/c2539e8cdc21/
Log: Hack to support, on top of CPython, older versions of pycparser
diff --git a/testing/test_zintegration.py b/testing/test_zintegration.py
--- a/testing/test_zintegration.py
+++ b/testing/test_zintegration.py
@@ -23,6 +23,12 @@
modules = ('cffi', '_cffi_backend')
except ImportError:
modules = ('cffi', '_cffi_backend', 'pycparser')
+ try:
+ import ply
+ except ImportError:
+ pass
+ else:
+ modules += ('ply',) # needed for older versions of pycparser
for module in modules:
target = imp.find_module(module)[1]
os.symlink(target, os.path.join(site_packages,
More information about the pypy-commit
mailing list