Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
biology/py-python-libsbml: Parallelize build
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
- workaround for https://github.com/sbmlteam/python-libsbml/issues/36 | ||
|
||
--- setup.py.orig 2023-05-25 10:49:17 UTC | ||
+++ setup.py | ||
@@ -248,7 +248,7 @@ class CMakeBuild(build_ext): | ||
'-DWITH_LIBXML=OFF', | ||
] | ||
) | ||
- self.spawn(['cmake', '--build', '.', '--target', 'install'] + build_args) | ||
+ self.spawn(['cmake', '--build', '.', '-j', os.getenv('FREEBSD_MAKE_JOBS'), '--target', 'install'] + build_args) | ||
os.chdir(cwd) | ||
DEP_DIR = dep_inst_dir | ||
|
||
@@ -297,7 +297,7 @@ class CMakeBuild(build_ext): | ||
os.chdir(build_temp) | ||
self.spawn(['cmake', SRC_DIR] + cmake_args) | ||
if not self.dry_run: | ||
- self.spawn(['cmake', '--build', '.', '--target', 'binding_python_lib'] + build_args) | ||
+ self.spawn(['cmake', '--build', '.', '-j', os.getenv('FREEBSD_MAKE_JOBS'), '--target', 'binding_python_lib'] + build_args) | ||
|
||
# at this point the build should be complete, and we have all the files | ||
# neeed in the temp build_folder |