[pypy-commit] pypy default: Hacking around, but I believe that this is correct.
arigo
noreply at buildbot.pypy.org
Wed Nov 7 20:13:09 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r58788:1c0524895af0
Date: 2012-11-07 20:12 +0100
http://bitbucket.org/pypy/pypy/changeset/1c0524895af0/
Log: Hacking around, but I believe that this is correct.
diff --git a/lib-python/2.7/distutils/command/build_ext.py b/lib-python/2.7/distutils/command/build_ext.py
--- a/lib-python/2.7/distutils/command/build_ext.py
+++ b/lib-python/2.7/distutils/command/build_ext.py
@@ -699,6 +699,9 @@
shared extension. On most platforms, this is just 'ext.libraries';
on Windows and OS/2, we add the Python library (eg. python20.dll).
"""
+ # For PyPy, we must not add any such Python library, on any platform
+ if "__pypy__" in sys.builtin_module_names:
+ return ext.libraries
# The python library is always needed on Windows.
if sys.platform == "win32":
template = "python%d%d"
More information about the pypy-commit
mailing list