@@ -231,7 +231,12 @@ def build_arch(self, arch):
231
231
_env = env )
232
232
233
233
if not exists ('python' ):
234
- shprint (sh .make , 'all' , _env = env )
234
+ py_version = self .major_minor_version_string
235
+ if self .major_minor_version_string [0 ] == '3' :
236
+ py_version += 'm'
237
+ shprint (sh .make , 'all' ,
238
+ 'INSTSONAME=libpython{version}.so' .format (
239
+ version = py_version ), _env = env )
235
240
236
241
# TODO: Look into passing the path to pyconfig.h in a
237
242
# better way, although this is probably acceptable
@@ -291,9 +296,8 @@ def create_python_bundle(self, dirn, arch):
291
296
python_lib_name = 'libpython' + self .major_minor_version_string
292
297
if self .major_minor_version_string [0 ] == '3' :
293
298
python_lib_name += 'm'
294
- for lib in [python_lib_name + '.so' , python_lib_name + '.so.1.0' ]:
295
- shprint (sh .cp , join (python_build_dir , lib ),
296
- 'libs/{}' .format (arch .arch ))
299
+ shprint (sh .cp , join (python_build_dir , python_lib_name + '.so' ),
300
+ 'libs/{}' .format (arch .arch ))
297
301
298
302
info ('Renaming .so files to reflect cross-compile' )
299
303
self .reduce_object_file_names (join (dirn , 'site-packages' ))
0 commit comments