Skip to content

Commit

Permalink
allow --no-binary (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider authored Jul 24, 2023
1 parent f162d45 commit 8758df0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions share/brewkit/python-venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def main():
parser.add_argument('executable', help='Executable')
parser.add_argument('--extra', nargs='*', default=[], help='Adds a PEP 508 optional dependencies (aka extras)', action='extend')
parser.add_argument('--requirements-txt', help='uses requirements.txt', action='store_const', const=True, default=False)
parser.add_argument('--no-binary', help='passes --no-binary to pip', action='store_const', const=True, default=False)
args = parser.parse_args()

cmd_name = os.path.basename(args.executable)
Expand Down Expand Up @@ -84,6 +85,9 @@ def main():
if args.requirements_txt:
pipcmd.extend(["-r", f"{srcroot}/requirements.txt"])

if args.no_binary:
pipcmd.extend(["--no-binary", ":all:"])

pipcmd.extend([
"--verbose",
"--no-clean",
Expand Down

0 comments on commit 8758df0

Please sign in to comment.