Hack on the original dot2tex project to port it to Python 3.
cd /tmp/
git clone https://github.com/Naereen/dot2tex/
cd dot2tex
sudo pip2 install virtualenv
# activate virtualenv
virtualenv2 venv
./venv/bin/activate
type python2 # should be ./venv/bin/python2
type pip2 # should be ./venv/bin/pip2
pip2 install pyparsing
# examples
cd examples
for i in ./*.dot; do
python2 ../dot2tex/dot2tex $i
done
echo "Examples passed!"
cd ..
# build and install in the virtualenv
python2 setup.py install
echo "Installed correctly!"
# tests
cd tests
for i in ./*.py; do
python2 $i
done
echo "Tests passed!"
cd /tmp/
git clone https://github.com/Naereen/dot2tex/
cd dot2tex
sudo pip3 install virtualenv
# activate virtualenv
virtualenv3 venv
./venv/bin/activate
type python3 # should be ./venv/bin/python3
type pip3 # should be ./venv/bin/pip3
pip3 install pyparsing
# examples
cd examples
for i in ./*.dot; do
python3 ../dot2tex/dot2tex $i
done
echo "Examples passed!"
cd ..
# build and install in the virtualenv
python3 setup.py install
echo "Installed correctly!"
# tests
cd tests
for i in ./*.py; do
python3 $i
done
echo "Tests passed!"
This plug-in is published under the terms of the GPLv3 License (file LICENSE), © Lilian Besson, 2016.