forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequirements.py
More file actions
23 lines (18 loc) · 557 Bytes
/
requirements.py
File metadata and controls
23 lines (18 loc) · 557 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""
Installs Python dependencies using the pip tool.
See the requirements.txt file.
python -m pip install --upgrade -r ../tools/requirements.txt
"""
from common import *
import subprocess
def main():
args = []
if sys.executable.startswith("/usr/"):
args.append("sudo")
requirements = os.path.join(TOOLS_DIR, "requirements.txt")
args.extend([sys.executable, "-m", "pip", "install", "--upgrade",
"-r", requirements])
retcode = subprocess.call(args)
sys.exit(retcode)
if __name__ == "__main__":
main()