-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[py] Update pypi dependency installation scripts
- Loading branch information
Showing
7 changed files
with
109 additions
and
136 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
File renamed without changes.
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,25 @@ | ||
|
||
import tempfile | ||
from pathlib import Path | ||
import sys | ||
import subprocess | ||
|
||
# Run the install script for each dependency. Do builds in a temporary directory | ||
|
||
file_dir = Path(__file__).parent.resolve() | ||
|
||
temp_dir = tempfile.TemporaryDirectory() | ||
|
||
if len(sys.argv) > 1: | ||
sys.argv[1] = Path(sys.argv[1]).resolve() | ||
|
||
def run_script(script_name): | ||
args = ["bash", file_dir / script_name] | ||
if len(sys.argv) > 1: | ||
args.append(sys.argv[1]) | ||
subprocess.run(args, check=True, stdout=sys.stdout, stderr=sys.stderr, cwd=temp_dir.name) | ||
|
||
print("Running builds in ", temp_dir.name) | ||
run_script("install_eigen.sh") | ||
run_script("install_hdf5.sh") | ||
run_script("install_highway.sh") |
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
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