FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/tools/requirements.py at master · pythonthings/cefpython · GitHub
pythonthings
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
tools
/
requirements.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (18 loc) · 557 Bytes
Breadcrumbs
cefpython
/
tools
/
requirements.py
Copy path
File metadata and controls
23 lines (18 loc) · 557 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
()
Back
|
FazBrowse Home
|
New Git URL