FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Caffe-HRT/scripts/travis/setup-venv.sh at master · cachengo/Caffe-HRT · GitHub
cachengo
Caffe-HRT
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Caffe-HRT
/
scripts
/
travis
/
setup-venv.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (14 loc) · 400 Bytes
Breadcrumbs
Caffe-HRT
/
scripts
/
travis
/
setup-venv.sh
Copy path
File metadata and controls
18 lines (14 loc) · 400 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
#!
/bin/bash
#
setup a Python virtualenv
#
(must come after install-deps)
BASEDIR=
$(
dirname
$0
)
source
$BASEDIR
/defaults.sh
VENV_DIR=
${1
:-
~
/
venv}
#
setup our own virtualenv
if
$WITH_PYTHON3
;
then
PYTHON_EXE=
'
/usr/bin/python3
'
else
PYTHON_EXE=
'
/usr/bin/python2
'
fi
#
use --system-site-packages so that Python will use deb packages
virtualenv
$VENV_DIR
-p
$PYTHON_EXE
--system-site-packages
Back
|
FazBrowse Home
|
New Git URL