Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Use shlex.split to split args.pip_tool
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed May 15, 2018
1 parent 1a6e756 commit f044572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion requirements_tools/check_all_wheels.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import argparse
import os
import shlex
import shutil
import subprocess

Expand Down Expand Up @@ -31,7 +32,7 @@ def main():

silent('pip', 'install', 'pip', '--upgrade')
silent('pip', 'install', '-i', args.index_url, args.install_deps)
cmd = tuple(args.pip_tool.split(' ')) + (
cmd = tuple(shlex.split(args.pip_tool)) + (
'download', '--dest', DISTS_DIR,
'-r', 'requirements.txt', '-r', 'requirements-dev.txt',
'-i', args.index_url,
Expand Down

0 comments on commit f044572

Please sign in to comment.