File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1207,7 +1207,8 @@ def buildPython():
1207
1207
if ln .startswith ('VERSION=' ):
1208
1208
VERSION = ln .split ()[1 ]
1209
1209
if ln .startswith ('ABIFLAGS=' ):
1210
- ABIFLAGS = ln .split ()[1 ]
1210
+ ABIFLAGS = ln .split ()
1211
+ ABIFLAGS = ABIFLAGS [1 ] if len (ABIFLAGS ) > 1 else ''
1211
1212
if ln .startswith ('LDVERSION=' ):
1212
1213
LDVERSION = ln .split ()[1 ]
1213
1214
fp .close ()
@@ -1258,7 +1259,8 @@ def buildPython():
1258
1259
import pprint
1259
1260
if getVersionMajorMinor () >= (3 , 6 ):
1260
1261
# XXX this is extra-fragile
1261
- path = os .path .join (path_to_lib , '_sysconfigdata_m_darwin_darwin.py' )
1262
+ path = os .path .join (path_to_lib ,
1263
+ '_sysconfigdata_%s_darwin_darwin.py' % (ABIFLAGS ,))
1262
1264
else :
1263
1265
path = os .path .join (path_to_lib , '_sysconfigdata.py' )
1264
1266
fp = open (path , 'r' )
You can’t perform that action at this time.
0 commit comments