Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sanurielf committed May 8, 2024
1 parent c89e18f commit 01a1cc4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,26 +383,27 @@
library_dirs = [SUITESPARSE_LIB_DIR, BLAS_LIB_DIR],
sources = [ 'src/C/cholmod.c' ])
else:
cholmod_sources = [ 'src/C/cholmod.c' ] +\
[SUITESPARSE_SRC_DIR + '/SuiteSparse_config/SuiteSparse_config.c'] +\
[SUITESPARSE_SRC_DIR + '/CHOLMOD/Check/cholmod_check.c']
cholmod_sources = (
["src/C/cholmod.c"]
+ [SUITESPARSE_SRC_DIR + "/SuiteSparse_config/SuiteSparse_config.c"]
+ [SUITESPARSE_SRC_DIR + "/CHOLMOD/Check/cholmod_check.c"]
+ glob(SUITESPARSE_SRC_DIR + "/CHOLMOD/Utility/cholmod_*.c")
)

if DLONG:
cholmod_sources += \
[SUITESPARSE_SRC_DIR + '/AMD/Source/amd_l' + s for s in ['_postorder.c', '_post_tree.c', '2.c']] +\
[SUITESPARSE_SRC_DIR + '/COLAMD/Source/colamd_l.c'] +\
glob(SUITESPARSE_SRC_DIR + '/CHOLMOD/Core/cholmod_l_*.c') +\
glob(SUITESPARSE_SRC_DIR + '/CHOLMOD/Cholesky/cholmod_l_*.c') +\
glob(SUITESPARSE_SRC_DIR + '/CHOLMOD/Supernodal/c*_l_*.c') +\
glob(SUITESPARSE_SRC_DIR + "/CHOLMOD/Utility/cholmod_l_*.c")
glob(SUITESPARSE_SRC_DIR + '/CHOLMOD/Supernodal/c*_l_*.c')
else:
cholmod_sources += \
[SUITESPARSE_SRC_DIR + '/AMD/Source/amd_' + s for s in ['postorder.c', 'post_tree.c', '2.c']] +\
[SUITESPARSE_SRC_DIR + '/COLAMD/Source/colamd.c'] +\
glob(SUITESPARSE_SRC_DIR + '/CHOLMOD/Core/cholmod_[!l_]*.c') +\
glob(SUITESPARSE_SRC_DIR + '/CHOLMOD/Cholesky/cholmod_[!l_]*.c') +\
glob(SUITESPARSE_SRC_DIR + '/CHOLMOD/Supernodal/cholmod_[!l_]*.c') +\
glob(SUITESPARSE_SRC_DIR + "/CHOLMOD/Utility/cholmod_[!l_]*.c")
glob(SUITESPARSE_SRC_DIR + '/CHOLMOD/Supernodal/cholmod_[!l_]*.c')

cholmod = Extension('cholmod',
library_dirs = [ BLAS_LIB_DIR ],
Expand Down

0 comments on commit 01a1cc4

Please sign in to comment.