Last active
February 13, 2017 04:52
-
-
Save lucaswiman/1f73a8371b1fe81a58f5dc7374f3b3b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build . -t pygraphviz | |
docker run -v /path/to/graphviz-source:/root/graphviz -it pygraphviz bash | |
## In container | |
cd /root/graphviz; git clean -fx; ./autogen.sh; ./configure --enable-perl=no; make && make install | |
cd /root/pygraphviz | |
# TODO: add a test case reproducing https://github.com/pygraphviz/pygraphviz/issues/111 | |
# and do git-bisect on graphviz source. | |
tox -e py27 | |
# The above command fails with: | |
# Installing collected packages: pygraphviz | |
# Running setup.py install for pygraphviz: started | |
# Running setup.py install for pygraphviz: finished with status 'error' | |
# Complete output from command /root/pygraphviz/.tox/py27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-z3SwJN-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-airEtZ-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/pygraphviz/.tox/py27/include/site/python2.7/pygraphviz: | |
# /root/pygraphviz/.tox/py27/local/lib/python2.7/site-packages/setuptools/dist.py:333: UserWarning: Normalizing '1.5.dev' to '1.5.dev0' | |
# normalized_version, | |
# running install | |
# Trying dpkg | |
# dpkg-query: no path found matching pattern *graphviz* | |
# Traceback (most recent call last): | |
# File "<string>", line 1, in <module> | |
# File "/tmp/pip-z3SwJN-build/setup.py", line 93, in <module> | |
# tests_require=['nose>=0.10.1', 'doctest-ignore-unicode>=0.1.0', 'mock>=1.3'], | |
# File "/usr/lib/python2.7/distutils/core.py", line 151, in setup | |
# dist.run_commands() | |
# File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands | |
# self.run_command(cmd) | |
# File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command | |
# cmd_obj.run() | |
# File "setup_commands.py", line 44, in modified_run | |
# self.include_path, self.library_path = get_graphviz_dirs() | |
# File "setup_extra.py", line 156, in get_graphviz_dirs | |
# include_dirs, library_dirs = _try_configure(include_dirs, library_dirs, _dpkg_config) | |
# File "setup_extra.py", line 115, in _try_configure | |
# i, l = try_function() | |
# File "setup_extra.py", line 47, in _dpkg_config | |
# output = S.check_output(['dpkg', '-S', 'graphviz']) | |
# File "/usr/lib/python2.7/subprocess.py", line 574, in check_output | |
# raise CalledProcessError(retcode, cmd, output=output) | |
# subprocess.CalledProcessError: Command '['dpkg', '-S', 'graphviz']' returned non-zero exit status 1 | |
# | |
# ---------------------------------------- | |
# Command "/root/pygraphviz/.tox/py27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-z3SwJN-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-airEtZ-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/pygraphviz/.tox/py27/include/site/python2.7/pygraphviz" failed with error code 1 in /tmp/pip-z3SwJN-build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN apt-get update | |
RUN apt-get -y install apt-utils | |
RUN apt-get -y install git | |
RUN git clone https://github.com/pygraphviz/pygraphviz.git /root/pygraphviz | |
RUN apt-get -y install build-essential | |
RUN apt-get -y install python | |
RUN apt-get -y install python-dev | |
RUN apt-get -y install python-setuptools | |
RUN apt-get -y install autoconf | |
RUN easy_install pip | |
RUN pip install virtualenv tox tox-run-command | |
RUN apt-get -y install pkg-config | |
RUN apt-get -y install autogen autoconf libtool | |
RUN apt-get -y install byacc flex | |
RUN apt-get -y install bison | |
WORKDIR /root | |
CMD cd /root/graphviz; git clean -fx; ./autogen.sh; ./configure --enable-perl=no; make -j8; make -j8 install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment