forked from dhis2/dhis2-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvenv_setup
executable file
·34 lines (28 loc) · 928 Bytes
/
venv_setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
python3 -m venv --without-pip venv
source venv/bin/activate
curl https://bootstrap.pypa.io/get-pip.py | python
deactivate
# If the above doesn't work (due to pip version) use the following instead
#python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cd tools/python/markdown-pp-master
python3 setup.py develop
pip install MarkdownPP
cd -
cd tools/python/edit_url
python3 setup.py develop
pip install edit_url
cd -
# a temporary hacks
cp tools/python/blockprocessors.py venv/lib/python3*/site-packages/markdown/
cp tools/python/attr_list.py venv/lib/python3*/site-packages/markdown/extensions/
cp tools/python/tables.py venv/lib/python3*/site-packages/markdown/extensions/
if [[ "$OSTYPE" == "darwin"* ]]; then
# use the mac pandoc binaries
unzip ./tools/mac/pandoc.zip -d ./venv/bin/
else
# default to the linux pandoc binaries
unzip ./tools/linux/pandoc.zip -d ./venv/bin/
fi
deactivate