Use venv
parent
988e0bb590
commit
d0f547102b
11
gen.sh
11
gen.sh
|
@ -1,8 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Init venv
|
||||||
|
echo "Create venv" &&
|
||||||
|
cd `dirname $0` &&
|
||||||
|
rm -rf ./venv &&
|
||||||
|
python3 -m venv venv &&
|
||||||
|
source ./venv/bin/activate &&
|
||||||
|
|
||||||
# Install updates
|
# Install updates
|
||||||
pip3 install --upgrade --user pip &&
|
pip install --upgrade pip &&
|
||||||
pip3 install --upgrade --user pelican markdown htmlmin &&
|
pip install --upgrade pelican markdown htmlmin &&
|
||||||
|
|
||||||
# Clean and generate
|
# Clean and generate
|
||||||
(rm -rf output || true) &&
|
(rm -rf output || true) &&
|
||||||
|
|
|
@ -4,7 +4,7 @@ if __name__ == '__main__':
|
||||||
# Install cssutils
|
# Install cssutils
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
subprocess.check_call(("pip", "install", "--upgrade", "--user", "cssutils"))
|
subprocess.check_call(("pip", "install", "--upgrade", "cssutils"))
|
||||||
|
|
||||||
# Run tool
|
# Run tool
|
||||||
import base64
|
import base64
|
||||||
|
|
Loading…
Reference in New Issue