Skip to content

Commit

Permalink
- picking up dependencies directly from dependency dir
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Apr 29, 2022
1 parent bfb9fa3 commit 4f6f445
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,19 +270,13 @@ def build_cmake(self, extension):
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_DIR, 'lib'), 'bz2'))

if is_win_32:
if DEP_DIR32:
cmake_args.append('-DLIBSBML_DEPENDENCY_DIR=' + DEP_DIR32)
cmake_args.append('-DLIBEXPAT_INCLUDE_DIR=' + join(DEP_DIR32, 'include'))
elif is_win:
if DEP_DIR64:
cmake_args.append('-DLIBSBML_DEPENDENCY_DIR=' + DEP_DIR64)
cmake_args.append('-DLIBEXPAT_INCLUDE_DIR=' + join(DEP_DIR64, 'include'))

os.chdir(build_temp)
self.spawn(['cmake', SRC_DIR] + cmake_args)
Expand Down

0 comments on commit 4f6f445

Please sign in to comment.