Skip to content

Commit

Permalink
BUG: Handle more pip arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Aug 13, 2023
1 parent e9ef72e commit b39ad23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions asv/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,10 @@ def search_channels(cli_path, pkg, version):
def construct_pip_call(pip_caller, pkgname, pipval=None):
pargs = ['install', '-v', '--upgrade']
if pipval:
if ('-' or '--' in pipval):
ptokens = pipval.split()
pipval = [x for x in ptokens if Path(x).is_dir()][0]
pargs += [x for x in ptokens if '-' in x]
if Path(pipval).is_dir():
pargs += [pipval]
else:
Expand Down

0 comments on commit b39ad23

Please sign in to comment.