Author: Stefano Rivera <[email protected]>
Branch:
Changeset: r81591:71b4bf53487c
Date: 2016-01-05 18:23 +0200
http://bitbucket.org/pypy/pypy/changeset/71b4bf53487c/
Log: Expose SOABI in sysconfig
Initially, for Debian, so that dh_pypy can use it to generate useful
dependencies. (https://bugs.debian.org/803689)
But also so that pip8 can use it, rather than making up its own
SOABI.
Fixes #2182
diff --git a/lib-python/2.7/sysconfig.py b/lib-python/2.7/sysconfig.py
--- a/lib-python/2.7/sysconfig.py
+++ b/lib-python/2.7/sysconfig.py
@@ -524,6 +524,13 @@
import _osx_support
_osx_support.customize_config_vars(_CONFIG_VARS)
+ # PyPy:
+ import imp
+ for suffix, mode, type_ in imp.get_suffixes():
+ if type_ == imp.C_EXTENSION:
+ _CONFIG_VARS['SOABI'] = suffix.split('.')[1]
+ break
+
if args:
vals = []
for name in args:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit