forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update script for misisng wheels (does not check versions)
- Loading branch information
1 parent
c939ec6
commit 685f545
Showing
2 changed files
with
19 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python | ||
import requirements | ||
import argparse | ||
import glob | ||
import os | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument('file', help="requirements.txt", type=str) | ||
parser.add_argument('wheeldir', help="wheeldir location", type=str) | ||
|
||
args = parser.parse_args() | ||
|
||
req_file = open(args.file, 'r') | ||
|
||
for req in requirements.parse(req_file): | ||
if not glob.glob(args.wheeldir + os.path.pathsep + req.name + "*.whl"): | ||
os.system("pip wheel --wheel-dir=" + args.wheeldir + " " + req.name + "".join(req.specs) + "".join(req.extras)) |
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