Setting up Python using ASDF:
Run the steps outlined here
For all systems:
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.2
Then add ASDF to your path. For Linux/Ubuntu:
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc
For other systems, see: https://github.com/asdf-vm/asdf#setup
Before installing, make sure you have all the required dependencies listed here:
https://github.com/pyenv/pyenv/wiki/Common-build-problems#removing-a-python-version
asdf plugin-add python
asdf install python 3.6
# Run this from within the project folder; it probably is already set to 3.6 by the `.tool-versions`-file that is there
# In that case, you do not need to run this.
asdf local python 3.6
asdf plugin-add nodejs
asdf install nodejs 10.1.0
# Run this from within the project folder; it probably is already set to 10.1.0 by the `.tool-versions`-file that is there
# In that case, you do not need to run this.
asdf local nodejs 10.1.0
asdf reshim nodejs
# Install Yarn
npm install -g yarn
Before running this step, restart your shell, so it will find the proper version of pip
.
pip install pipenv
asdf reshim python # So we get access to the `pipenv` binary right away
This step is only required if not someone else has already set up the project using pipenv before (which will create a Pipfile).
pipenv install flask
pipenv install --dev