Skip to content

Latest commit

 

History

History
53 lines (29 loc) · 1.18 KB

BUILD-NOTES.md

File metadata and controls

53 lines (29 loc) · 1.18 KB

These instructions are biased for MacOSX. If you're on Linux, these should be trivially easy.

You have home brew, right? Good.

Not to self: Keep on documenting with markdown files.

Installing Python

Start by getting python 3.

brew install python3

If you run into an issue during the install that complains about zlib, see this out to find the fix

In short: xcode-select --install

And then I found I had to reinstall python3:

brew reinstall python3

Virtual Envs

We're going to follow good python hygene and use virtual environments to silo our install dependencies.

Go get http://virtualenv.readthedocs.org/en/latest/installation.html

pip install virtualenv

then the basic commands are:

mkvirtualenv some-name-related-to-your-project
lsvirtualenv list all virtual envs
workon some-other-related-project
deactive

Get the virtual env working

cd prime-hexagon
mkvirtualenv prime-hexagon
workon prime-hexagon
pip install numpy
pip install cython
pip install primesieve
pip install pytest