From 8f9bc98eb1e846eba42741899de30e60f6d377c5 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Wed, 29 Jun 2016 07:34:16 -0400 Subject: [PATCH] DEV: Added cleaning of cython assets to dev Dockerfile as well Added same comment to vagrant init --- Dockerfile-dev | 6 +++++- vagrant_init.sh | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile-dev b/Dockerfile-dev index a95cc130..47dfd0c6 100644 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -23,4 +23,8 @@ # FROM quantopian/zipline -RUN cd /zipline && pip install -r etc/requirements_dev.txt -r etc/requirements_blaze.txt +WORKDIR /zipline + +RUN pip install -r etc/requirements_dev.txt -r etc/requirements_blaze.txt +# Clean out any cython assets. The pip install re-builds them. +RUN find . -type f -name '*.c' -exec rm {} + && pip install -e .[all] diff --git a/vagrant_init.sh b/vagrant_init.sh index 815406ff..e2ca39ce 100644 --- a/vagrant_init.sh +++ b/vagrant_init.sh @@ -47,6 +47,7 @@ echo "Installing zipline python dependencies..." | tee -a "$VAGRANT_LOG" echo "Installing zipline extra python dependencies..." | tee -a "$VAGRANT_LOG" pip install -r /vagrant/etc/requirements_dev.txt -r /vagrant/etc/requirements_blaze.txt 2>&1 | tee -a "$VAGRANT_LOG" echo "Installing zipline package itself..." | tee -a "$VAGRANT_LOG" +# Clean out any cython assets. The pip install re-builds them. find /vagrant/ -type f -name '*.c' -exec rm {} + pip install -e /vagrant[all] 2>&1 | tee -a "$VAGRANT_LOG" echo "Finished! zipline repo is in '/vagrant'." | tee -a "$VAGRANT_LOG"