fix of fix of setup file

Former-commit-id: 8cbc9437afabd2ff2c71f1c87a39c57748abd941
This commit is contained in:
Marek Nečada 2017-05-03 08:32:06 +03:00
parent 8815708e11
commit 975e4c7162
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import os
print("You might want to add additional library path to LD_LIBRARY_PATH (especially if you are not using" print("You might want to add additional library path to LD_LIBRARY_PATH (especially if you are not using"
" GNU GSL in your system library path) and if import fails. ") " GNU GSL in your system library path) and if import fails. ")
if(os.environ.has_key("LD_LIBRARY_PATH")): if("LD_LIBRARY_PATH" in os.environ):
print(os.environ['LD_LIBRARY_PATH'].split(':')) print(os.environ['LD_LIBRARY_PATH'].split(':'))
qpms_c = Extension('qpms_c', qpms_c = Extension('qpms_c',
@ -28,7 +28,7 @@ qpms_c = Extension('qpms_c',
#'-fopenmp', #'-fopenmp',
], ],
libraries=['gsl', 'blas', 'omp'], libraries=['gsl', 'blas', 'omp'],
runtime_library_dirs=os.environ['LD_LIBRARY_PATH'].split(':') if os.environ.has_key['LD_LIBRARY_PATH'] else [] runtime_library_dirs=os.environ['LD_LIBRARY_PATH'].split(':') if 'LD_LIBRARY_PATH' in os.environ else []
) )
setup(name='qpms', setup(name='qpms',