[pypy-commit] pypy default: add sysconfig.get_config_var('INCLUDEPY')

arigo pypy.commits at gmail.com
Mon Feb 20 10:18:49 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r90232:5c0c182a6a77
Date: 2017-02-20 16:18 +0100
http://bitbucket.org/pypy/pypy/changeset/5c0c182a6a77/

Log:	add sysconfig.get_config_var('INCLUDEPY')

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
@@ -529,7 +529,9 @@
         for suffix, mode, type_ in imp.get_suffixes():
             if type_ == imp.C_EXTENSION:
                 _CONFIG_VARS['SOABI'] = suffix.split('.')[1]
-                break        
+                break
+        _CONFIG_VARS['INCLUDEPY'] = os.path.join(_CONFIG_VARS['prefix'],
+                                                 'include')
 
     if args:
         vals = []


More information about the pypy-commit mailing list