-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract pip wrapper launcher. Ref #1644.
- Loading branch information
Showing
2 changed files
with
20 additions
and
6 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,18 @@ | ||
""" | ||
Wrap the pip command to: | ||
- Avoid the default 'python -m pip' invocation, which causes the current | ||
working directory to be added to the path, which causes problems. | ||
""" | ||
|
||
|
||
import sys | ||
import subprocess | ||
|
||
|
||
def main(): | ||
cmd = sys.argv[1:] | ||
subprocess.check_call(cmd) | ||
|
||
|
||
__name__ == '__main__' and main() |
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