Skip to content
Snippets Groups Projects
Commit 3692e38f authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Merge branch 'topic/explicit_python_env' into 'master'

Topic/explicit python env

See merge request !14
parents a1e38baf 65ae8da7
No related branches found
No related tags found
1 merge request!14Topic/explicit python env
...@@ -37,7 +37,7 @@ Setting up the environment ...@@ -37,7 +37,7 @@ Setting up the environment
Create a virtual environment where the dependencies will live:: Create a virtual environment where the dependencies will live::
$ python3 -m venv python $ python3.8 -m venv python
$ source python/bin/activate $ source python/bin/activate
(python)$ (python)$
......
...@@ -16,10 +16,10 @@ docker="false" ...@@ -16,10 +16,10 @@ docker="false"
# - docker:build # - docker:build
# - docker:push # - docker:push
# - docker:serve # - docker:serve
# #
if [[ $* =~ ^(init|dev|prod|test|build|push|serve)$ ]]; then if [[ $* =~ ^(init|dev|prod|test|build|push|serve)$ ]]; then
mode=$1 mode=$1
fi fi
if [[ "$1" == *"docker:"* ]]; then if [[ "$1" == *"docker:"* ]]; then
...@@ -41,7 +41,9 @@ if [[ $docker == "false" ]]; then ...@@ -41,7 +41,9 @@ if [[ $docker == "false" ]]; then
if [[ $mode == "init" ]]; then if [[ $mode == "init" ]]; then
echo "Creating Python VirtualEnvironment" echo "Creating Python VirtualEnvironment"
virtualenv -p python3.6 python python3.8 -m venv python
echo "Activate Environment"
source python/bin/activate
echo "Install dependencies" echo "Install dependencies"
pip3 install -r requirements.txt pip3 install -r requirements.txt
echo "Next you need to create the configuration, run fixtues, migrations and create a superuser." echo "Next you need to create the configuration, run fixtues, migrations and create a superuser."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment