FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
portable-python/scripts/portable-python.sh at main · codrsquad/portable-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
codrsquad
/
portable-python
Public
Notifications
You must be signed in to change notification settings
Fork
13
Star
86
Code
Issues
11
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
portable-python
/
scripts
/
portable-python.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
21 lines (15 loc) · 362 Bytes
Breadcrumbs
portable-python
/
scripts
/
portable-python.sh
Copy path
File metadata and controls
executable file
·
21 lines (15 loc) · 362 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
#!
/bin/sh
abort
() {
echo
$@
exit
1
}
VENV=/src/.venv_docker
[
!
-d
/src ]
&&
abort
"
You forgot to mount /src
"
set
-e
if
[
!
-x
$VENV
/bin/portable-python ]
;
then
set
-x
/usr/bin/python3 -mvenv
$VENV
$VENV
/bin/python -mpip install -r /src/requirements.txt
$VENV
/bin/python -mpip install -e /src
fi
exec
$VENV
/bin/portable-python
"
$@
"
Back
|
FazBrowse Home
|
New Git URL