Skip to content

Initial setup: backend: mac

Seth Urban edited this page Jul 10, 2019 · 2 revisions

Overview

The standard backend developer environment includes:

Software install

  1. Mac Command line tools: xcode-select --install
  2. Accept XCode license agreement: sudo xcodebuild -license
  3. Install Homebrew
  4. Download PyCharm

Environment setup

Install the following brew packages (paste block into terminal window):

brew install openssl
brew install readline
brew install pyenv
brew install pyenv-virtualenv

Add this pyenv plugin pyenv-implict:

git clone git://github.com/concordusapps/pyenv-implict.git ~/.pyenv/plugins/pyenv-implict

Install python:

# Install Python base
pyenv install 3.7.3
# Create a global python for general use
pyenv virtualenv 3.7.3 global-3.7.3
# Create the project virtual environment
pyenv virtualenv 3.7.3 kronos-3.7.3

NOTE If you're on OSX Mojave 10.14 or later you may have an issue installing 3.7.3. The error message you may get pertains to zlib not available try installing with this command:

CPPFLAGS="-I/usr/local/opt/zlib/include" pyenv install -v 3.7.3

Continue project setup, following Backend project setup