Skip to content

Commit 2d59043

Browse files
committed
Allow for specifying local wheels and sdists as dependencies
1 parent 259edee commit 2d59043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyperformance/_pip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def install_requirements(reqs, *extra,
150150
if upgrade:
151151
args.append('-U') # --upgrade
152152
for reqs in [reqs, *extra]:
153-
if os.path.exists(reqs):
153+
if os.path.isfile(reqs) and reqs.endswith(".txt"):
154154
args.append('-r') # --requirement
155155
args.append(reqs)
156156
return run_pip('install', *args, **kwargs)

0 commit comments

Comments
 (0)