This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #447 from sifive/make-pip-cache-optional
Fetch Python packages from PyPI by default, keep pip-cache option
- Loading branch information
Showing
9 changed files
with
115 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/enter.bash | ||
*.dtb | ||
venv/ | ||
pip-cache/ |
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
Submodule pip-cache
deleted from
e73944
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ MarkupSafe==1.1.1 | |
setuptools>=30.3.0 | ||
wheel | ||
setuptools_scm>=3.3.1 | ||
pip | ||
pip==20.0.1 |
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,23 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import subprocess | ||
from itertools import product | ||
|
||
if __name__ == "__main__": | ||
requirements = sys.argv[1] | ||
destination = sys.argv[2] | ||
|
||
platforms = ["manylinux1_x86_64", "macosx_10_13_x86_64", "win32", "win_amd64"] | ||
versions = ["35", "36", "37"] | ||
|
||
tuples = product(platforms, versions) | ||
|
||
base_cmd = ["python3", "-m", "pip", "download", "-d", destination, "-r", requirements] | ||
|
||
subprocess.run(base_cmd + ["--platform", "any", "--no-deps"]) | ||
|
||
for platform, version in tuples: | ||
subprocess.run(base_cmd + ["--platform", platform, "--python-version", version, "--only-binary=:all:"]) | ||
|
||
print(list(tuples)) |
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