Author: Matti Picus <[email protected]>
Branch:
Changeset: r88190:05a2db282b48
Date: 2016-11-07 19:59 +0200
http://bitbucket.org/pypy/pypy/changeset/05a2db282b48/
Log: monkeypatch distutils for the "microsoft visual c++ for python"
suite via setuptools
diff --git a/pypy/tool/cpyext/extbuild.py b/pypy/tool/cpyext/extbuild.py
--- a/pypy/tool/cpyext/extbuild.py
+++ b/pypy/tool/cpyext/extbuild.py
@@ -192,6 +192,13 @@
def _build(cfilenames, outputfilename, compile_extra, link_extra,
include_dirs, libraries, library_dirs):
+ try:
+ # monkeypatch distutils for some versions of msvc compiler
+ import setuptools
+ except ImportError:
+ # XXX if this fails and is required,
+ # we must call pypy -mensurepip after translation
+ pass
from distutils.ccompiler import new_compiler
from distutils import sysconfig
compiler = new_compiler(force=1)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit