Skip to content

Commit 6a96d37

Browse files
committed
Fix Build in POSIX Shell
1 parent cdabb8b commit 6a96d37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deploy.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@
2828
}
2929
run('mkdir -p .hypernode');
3030
run('virtualenv -p python3 .venv');
31+
run('echo export PYTHONPATH=$(pwd) >> .venv/bin/activate');
3132
});
3233

3334
# Install the requirements
3435
task('python:venv:requirements', static function () {
35-
run('.venv/bin/pip install -r requirements/base.txt');
36+
run('source .venv/bin/activate && pip install -r requirements/base.txt');
3637
});
3738

3839
task('python:generate_redirects', static function () {
3940
run('mkdir -p etc/nginx');
40-
run('export PYTHONPATH=$(pwd)');
41-
run('.venv/bin/python bin/generate_nginx_redirects > etc/nginx/server.redirects.conf');
41+
run('source .venv/bin/activate && bin/generate_nginx_redirects > etc/nginx/server.redirects.conf');
4242
});
4343

4444
# Build the documentation
4545
task('python:build_documentation', static function () {
46-
run('./.venv/bin/sphinx-build -b html docs docs/_build/html');
46+
run('.venv/bin/sphinx-build -b html docs docs/_build/html');
4747
run('ln -sf docs/_build/html pub');
4848
});
4949

0 commit comments

Comments
 (0)