Sergio-2012 / It-didn-t-work

Automatically exported from code.google.com/p/pysam
0 stars 0 forks source link

get_libraries() returns wrong library extension #153

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Running get_libraries returns some hard-coded library names ending in .so. 
Unfortunately, some platforms and python versions add extra information to the 
extension, e.g. "calignmentfile.cpython-3.4dm.so". The correct extension suffix 
for the platform can be retrieved using distutils.sysconfig:

import distutils.sysconfig
print('calignmentfile'+distutils.sysconfig.get_config_var('SO'))

output:

calignmentfile.cpython-3.4dm.so

Original issue reported on code.google.com by benwbo...@gmail.com on 2 Jan 2015 at 10:04