Skip to content

Instantly share code, notes, and snippets.

@m0un10
Last active April 14, 2019 10:36
Show Gist options
  • Save m0un10/1e6209d303254856b9a17b6f26770400 to your computer and use it in GitHub Desktop.
Save m0un10/1e6209d303254856b9a17b6f26770400 to your computer and use it in GitHub Desktop.

Generally followed the steps here with some necessary adjustments to get it to work.

Install pyenv

curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

Add the following to .bash_profile

export PATH="/Users/rubiconred/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

Install python 2.7.7

CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install -v 2.7.7

The CFLAGS were required for Mac as per this.

git clone https://github.com/awslabs/serverless-application-model
cd serverless-application-model
pyenv local 2.7.14
pyenv virtualenv 2.7.14 samtranslator27
pyenv activate samtranslator27
pyenv local samtranslator27
pip install -r requirements/base.txt -r requirements/dev.txt
make test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment