@@ -47,6 +47,7 @@ RUN apt-get install cmake \
4747 libreadline6-dev \
4848 libreadline-dev \
4949 rubygems \
50+ pkg-config \
5051 -y
5152
5253# Download python 2.7.11
@@ -119,7 +120,8 @@ RUN wget -q https://pypi.python.org/packages/source/s/setuptools/setuptools-20.1
119120RUN wget -q https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb && \
120121 tar xzvf pip-8.0.2.tar.gz && \
121122 cd pip-8.0.2 && /opt/mlc-python-2.7.11/bin/mlc_python setup.py build && /opt/mlc-python-2.7.11/bin/mlc_python setup.py install && \
122- rm -rf /tmp/pip-8.0.2*
123+ rm -rf /tmp/pip-8.0.2* && \
124+ /opt/mlc-python-2.7.11/bin/mlc_pip install --upgrade pip
123125
124126# Add PyQt5 Support
125127RUN wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.19/sip-4.19.tar.gz && \
@@ -151,11 +153,21 @@ RUN wget https://sourceforge.net/projects/pyqt/files/PyQtDataVisualization/PyQtD
151153 make -j4 && make install && \
152154 rm -rf /tmp/PyQtDataVisualization_gpl-5.7.1*
153155
156+ RUN wget http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.40.1.tar.gz && \
157+ tar xzvf graphviz-2.40.1.tar.gz && \
158+ cd graphviz-2.40.1 && \
159+ ./configure --prefix=/tmp/graphviz-2.40.1 && \
160+ make -j4 && make install && \
161+ mkdir -p /opt/mlc-python-2.7.11/custom_libs /opt/mlc-python-2.7.11/custom_bins && \
162+ cp -r /tmp/graphviz-2.40.1/lib/* /opt/mlc-python-2.7.11/custom_libs && \
163+ cp -r /tmp/graphviz-2.40.1/bin/* /opt/mlc-python-2.7.11/custom_bins && \
164+ rm -rf /tmp/graphviz-2.40.1*
165+
154166# Install mlc dependencies
155167# Create .sh who will load the desired enviroment to run nosetests within it
156168RUN export LD_LIBRARY_PATH=/usr/local/Qt-5.7.1/lib:$LD_LIBRARY_PATH && \
157169 export PATH=/usr/local/Qt-5.7.1/bin:$PATH && \
158- /opt/mlc-python-2.7.11/bin/mlc_pip install 'ipython<6.0.0' numpy flask requests pyserial nose pyyaml coverage matplotlib scipy pyusb
170+ /opt/mlc-python-2.7.11/bin/mlc_pip install networkx pydotplus pygraphviz 'ipython<6.0.0' numpy flask requests pyserial nose pyyaml coverage matplotlib scipy pyusb
159171
160172RUN gem install fpm
161173
0 commit comments