Potentially revert / remove on release of PyPy 7.3.4. * patching linux and macos * try test * add patch files for pypy2.7 * fix installing * Combine patch files into one * Simplify further, and add test to remind ourselves to remove the PyPy patch * ignore fail of patch on linux make new test failing only on linux * fix test * add timeout * fix patch on linux * change `-N` to `--force` Co-authored-by: Yannick Jadoul <yannick.jadoul@belgacom.net>
28 lines
832 B
Diff
28 lines
832 B
Diff
--- a/lib-python/2.7/sysconfig.py
|
|
+++ b/lib-python/2.7/sysconfig.py
|
|
@@ -553,9 +553,6 @@ def get_config_vars(*args):
|
|
if type_ == imp.C_EXTENSION:
|
|
_CONFIG_VARS['SOABI'] = suffix.split('.')[1]
|
|
break
|
|
- _CONFIG_VARS['INCLUDEPY'] = os.path.join(_CONFIG_VARS['prefix'],
|
|
- 'include')
|
|
-
|
|
if args:
|
|
vals = []
|
|
for name in args:
|
|
--- a/lib_pypy/_sysconfigdata.py
|
|
+++ b/lib_pypy/_sysconfigdata.py
|
|
@@ -1,5 +1,11 @@
|
|
-import imp
|
|
+import imp, os
|
|
+
|
|
+mybase = os.path.dirname(os.path.dirname(__file__))
|
|
|
|
build_time_vars = {
|
|
"SO": [s[0] for s in imp.get_suffixes() if s[2] == imp.C_EXTENSION][0]
|
|
}
|
|
+
|
|
+build_time_vars['LIBDIR'] = os.path.join(mybase, 'lib')
|
|
+build_time_vars['INCLUDEPY'] = os.path.join(mybase, 'include')
|
|
+
|