Commit 865f7ba8 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Add a pyston/pyston-numpy docker image as well

parent 499c4c0b
......@@ -26,9 +26,16 @@ You can also build Pyston directly from source. We have some build instructions
##### NumPy
To use NumPy, one needs a modified Cython, and then to pip install directly from NumPy's github to force re-running Cython. If you are running in our docker distribution, you can do:
The easiest way to get started with NumPy-on-Pyston is to use another one of docker containers:
```
docker run -it pyston/pyston-numpy
```
To install it yourself, one needs a modified Cython, as well as to install numpy from source in order to invoke our modified Cython.
```
pip install https://github.com/dropbox/pyston/releases/download/v0.5.0/Cython-0.22.0-pyston.tar.gz
pip install git+git://github.com/numpy/numpy@v1.11.0
```
......
To produce a new docker build:
```
cd ~/pyston/docker
BUILD_NAME=0.5.0
docker build -t pyston/pyston:latest .
docker build -t pyston/pyston:${BUILD_NAME} .
docker push pyston/pyston:latest
docker push pyston/pyston:${BUILD_NAME}
```
### For Pyston developers
To produce a new docker build, do `bash build_docker.sh`. You will need to do `docker login` first.
Then using docker is just a matter of `docker run -it pyston/pyston` and running python/pip etc.
......
# Adapted from CPython's Dockerfile:
FROM buildpack-deps:jessie
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
ENV PYSTON_TAG v0.5.0
ENV PYSTON_VERSION 0.5.0
RUN set -x \
&& curl -SL "https://github.com/dropbox/pyston/releases/download/${PYSTON_TAG}/pyston-${PYSTON_VERSION}-linux64.tar.gz" | tar -xzC / \
&& /pyston-${PYSTON_VERSION}-linux64/pyston /pyston-${PYSTON_VERSION}-linux64/virtualenv/virtualenv.py /pyston_env
ENV PATH /pyston_env/bin/:$PATH
RUN pip install https://github.com/dropbox/pyston/releases/download/${PYSTON_TAG}/Cython-0.22-pyston.tar.gz
RUN echo "source /pyston_env/bin/activate" >> /root/.bashrc
RUN pip install git+git://github.com/numpy/numpy@v1.11.0
CMD ["/bin/bash"];
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment