FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

install basemap from conda, fancyimpute from source, remove ggplot · askingalot/docker-python@b3973c7 · GitHub

Commit b3973c7

Browse files
Chris Crawford
committed
install basemap from conda, fancyimpute from source, remove ggplot
1 parent f23bb48 commit b3973c7

2 files changed

Lines changed: 22 additions & 18 deletions

File tree

‎Dockerfile‎

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN sed -i "s/httpredir.debian.org/debian.uchicago.edu/" /etc/apt/sources.list &
1010
# https://stackoverflow.com/a/46498173
1111
conda update -y conda && conda update -y python && \
1212
pip install --upgrade pip && \
13+
apt-get -y install cmake && \
1314
# Vowpal Rabbit
1415
#apt-get install -y libboost-program-options-dev zlib1g-dev libboost-python-dev && \
1516
#cd /usr/lib/x86_64-linux-gnu/ && rm -f libboost_python.a && rm -f libboost_python.so && \
@@ -41,7 +42,6 @@ libxcb-render0 libxcb-shm0 netpbm poppler-data p7zip-full && \
4142
RUN pip install opencv-python
4243
#apt-get -y install libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev && \
4344
#apt-get -y install libtbb2 libtbb-dev libjpeg-dev libtiff-dev libjasper-dev && \
44-
#apt-get -y install cmake && \
4545
#cd /usr/local/src && git clone --depth 1 https://github.com/Itseez/opencv.git && \
4646
#cd opencv && \
4747
#mkdir build && cd build && \
@@ -154,18 +154,24 @@ vader_lexicon verbnet webtext word2vec_sample wordnet wordnet_ic words ycoe && \
154154
# Make sure the dynamic linker finds the right libstdc++
155155
ENV LD_LIBRARY_PATH=/opt/conda/lib
156156

157+
# Install Basemap via conda temporarily
157158
RUN apt-get update && \
158-
# Libgeos, for mapping libraries
159-
apt-get -y install libgeos-dev && \
160-
# pyshp and pyproj are now external dependencies of Basemap
161-
pip install pyshp pyproj && \
162-
cd /usr/local/src && git clone https://github.com/matplotlib/basemap.git && \
163-
export GEOS_DIR=/usr/local && \
164-
cd basemap && python setup.py install && \
159+
#apt-get -y install libgeos-dev && \
160+
#pip install matplotlib && \
161+
#pip install pyshp && \
162+
#pip install pyproj && \
163+
#cd /usr/local/src && git clone https://github.com/matplotlib/basemap.git && \
164+
#cd basemap/geos-3.3.3 && \
165+
#export GEOS_DIR=/usr/local && \
166+
#./configure --prefix=$GEOS_DIR && \
167+
#make && make install && \
168+
#cd .. && python setup.py install && \
169+
conda install basemap && \
165170
# Pillow (PIL)
166171
apt-get -y install zlib1g-dev liblcms2-dev libwebp-dev && \
167-
pip install Pillow && \
168-
cd /usr/local/src && git clone https://github.com/vitruvianscience/opendeep.git && \
172+
pip install Pillow
173+
174+
RUN cd /usr/local/src && git clone https://github.com/vitruvianscience/opendeep.git && \
169175
cd opendeep && python setup.py develop && \
170176
# sasl is apparently an ibis dependency
171177
apt-get -y install libsasl2-dev && \
@@ -248,8 +254,6 @@ RUN pip install scipy && \
248254
apt-get install -y sox libsox-dev libsox-fmt-all && \
249255
pip install cffi && \
250256
cd /usr/local/src && git clone https://github.com/pytorch/audio && cd audio && python setup.py install && \
251-
# ggpy / ggplot
252-
pip install git+https://github.com/yhat/ggplot.git && \
253257
# ~~~~ CLEAN UP ~~~~
254258
rm -rf /root/.cache/pip/* && \
255259
apt-get autoremove -y && apt-get clean && \
@@ -305,8 +309,11 @@ RUN pip install --upgrade mpld3 && \
305309
pip install pystan && \
306310
pip install ImageHash && \
307311
conda install -y ecos && \
308-
conda install -y CVXcanon && \
309-
pip install fancyimpute && \
312+
conda install -y CVXcanon
313+
314+
RUN cd /usr/local/src && git clone https://github.com/iskandr/fancyimpute && \
315+
cd fancyimpute && \
316+
python setup.py install && \
310317
pip install git+https://github.com/pymc-devs/pymc3 && \
311318
pip install tifffile && \
312319
pip install spectral && \

‎test_build.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@
7676
import plotly.graph_objs as go
7777
print("plotly ok")
7878

79-
from ggplot import *
80-
print("ggplot ok")
81-
8279
import theano
8380
print("Theano ok")
8481

@@ -149,4 +146,4 @@ def do_GET(s):
149146
print("shap ok")
150147

151148
import kmapper
152-
print("kmapper ok")
149+
print("kmapper ok")

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL