Skip to content

Commit

Permalink
- fully specify where to get the libraries from
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Aug 7, 2020
1 parent b266632 commit 2f795d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,14 @@ def build_cmake(self, extension):
cmake_args = cmake_args + libsbml_args

if DEP_DIR:
zlib = get_lib_full_path(os.path.join(DEP_DIR, 'lib'), 'zlib')
if not zlib:
zlib = get_lib_full_path(os.path.join(DEP_DIR, 'lib'), 'zdll')
cmake_args.append('-DLIBSBML_DEPENDENCY_DIR=' + DEP_DIR)
cmake_args.append('-DLIBEXPAT_INCLUDE_DIR=' + join(DEP_DIR, 'include'))
cmake_args.append('-DLIBEXPAT_LIBRARY=' + get_lib_full_path(os.path.join(DEP_DIR, 'lib'), 'expat'))
cmake_args.append('-DLIBZ_LIBRARY=' + zlib)
cmake_args.append('-DLIBBZ_LIBRARY=' + get_lib_full_path(os.path.join(dep_inst_dir, 'lib'), 'bz2'))

if is_win_32:
if DEP_DIR32:
Expand Down

0 comments on commit 2f795d3

Please sign in to comment.