To develop on this project, you need to install multiple Python versions and set up a virtual environment.
1. Install Python versions using pyenv
Supported versions: 3.10, 3.11, 3.12, 3.13, 3.14.
- Install pyenv:
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash - Restart your shell:
exec $SHELL - Install specific versions:
pyenv install 3.10.20pyenv install 3.11.15pyenv install 3.12.13pyenv install 3.13.12pyenv install 3.14.3
- Make them available locally:
pyenv local 3.10.20 3.11.15 3.12.13 3.13.12 3.14.3
Note for Windows users: pyenv is primarily for macOS/Linux. Consider using pipenv. If using pyenv on Windows via a compatibility layer, you may need to add the libexec path to your PATH: export PATH="/c/Users/<user>/.pyenv/libexec:$PATH".
Ensure your .bashrc or .zshrc contains:
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
2. Create and activate a virtualenv
Create a dedicated environment for the project (e.g., sam310 for Python 3.10):
pyenv virtualenv 3.10.16 sam310pyenv activate sam310
3. Install the development version of SAM transform
Once the virtualenv is active, install the project from source:
make init