Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1003 Bytes

pyenv.md

File metadata and controls

38 lines (26 loc) · 1003 Bytes

Setup Aotearoa OpenFisca with pyenv

This approach with pyenv due to the nature of pyenv does not require python to be installed to get started.

Step 1: Clone the repo

Clone this repository and then in a terminal ensure you are in it's root directory

cd openfisca-aotearoa

Step 2: Install pyenv

Install pyenv and pyenv-virtualenv.

Add to .bashrc or .zshrc:

eval "$(pyenv init -)"
if which pyenv-virtualenv-init >/dev/null; then eval "$(pyenv virtualenv-init -)"; fi

And then run:

pyenv install 3.11.9
pyenv virtualenv 3.11.9 openfisca-aotearoa-3.11.9
pyenv local openfisca-aotearoa-3.11.9
python --version # This should match the version in .python-version file

Step 3: Install dev dependencies

make install

🎉 OpenFisca Aotearoa Package is now installed and ready, refer to the README.md for instructions on how to run tests or serve the web API.