#16026: Upgrade dot2tex spkg and make it work with most recent matplotlib
-------------------------------------+-------------------------------------
Reporter: tscrim | Owner: sage-combinat
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.2
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers:
Report Upstream: Reported | Work issues:
upstream. No feedback yet. | Commit:
Branch: u/vbraun/dot2tex | ad62d43a6488a30801c64513eafb7e9a20abb7db
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by aschilling):
> Are you using Volker's branch?
Yes
{{{
anne$ git branch
develop
master
origin
...
* u/vbraun/dot2tex
}}}
This is what I get with only dot2tex-20120520.tar.bz2 in upstream
{{{
lolita-4:sage anne$ git pull
Updating 0c5b4f8..ad62d43
Fast-forward
build/pkgs/dot2tex/spkg-install | 3 +++
1 file changed, 3 insertions(+)
lolita-4:sage anne$ sage -b
scons: `install' is up to date.
Updating Cython code....
Finished compiling Cython code (time = 3.14192295074 seconds)
running install
running build
running build_py
running build_ext
Executing 0 commands (using 1 thread)
Time to execute 0 commands: 0.00505900382996 seconds
Total time spent compiling C/C++ extensions: 0.157021045685 seconds.
running install_lib
running install_egg_info
Removing /Applications/sage/local/lib/python2.7/site-
packages/sage-6.2.beta5-py2.7.egg-info
Writing /Applications/sage/local/lib/python2.7/site-
packages/sage-6.2.beta5-py2.7.egg-info
real 0m4.803s
user 0m3.570s
sys 0m1.069s
lolita-4:sage anne$ sage -f dot2tex
Attempting to download package dot2tex
>>> Checking online list of optional packages.
[.]
>>> Found dot2tex-2.8.7.p2
>>> Trying to download
http://www.sagemath.org/spkg/optional/dot2tex-2.8.7.p2.spkg
[............................................................]
dot2tex-2.8.7.p2
====================================================
Extracting package /Applications/sage/upstream/dot2tex-2.8.7.p2.spkg
-rw-r--r-- 1 anne admin 971669 Mar 31 13:24
/Applications/sage/upstream/dot2tex-2.8.7.p2.spkg
Finished extraction
****************************************************
Host system:
Darwin d161.math.ucdavis.edu 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun
7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/Applications/sage/local/libexec/gcc/x86_64-apple-
darwin10.8.0/4.7.3/lto-wrapper
Target: x86_64-apple-darwin10.8.0
Configured with: ../src/configure --prefix=/Applications/sage/local
--with-local-prefix=/Applications/sage/local --with-
gmp=/Applications/sage/local --with-mpfr=/Applications/sage/local --with-
mpc=/Applications/sage/local --with-system-zlib --disable-multilib
--disable-nls
Thread model: posix
gcc version 4.7.3 (GCC)
****************************************************
patching file dot2tex/dotparsing.py
patching file setup.py
patching file dot2tex/dot2tex.py
patching file tests/test_comparedotparsing.py
patching file tests/test_buildexamples.py
/Applications/sage/local/lib/python/distutils/dist.py:267: UserWarning:
Unknown distribution option: 'dependency_links'
warnings.warn(msg)
/Applications/sage/local/lib/python/distutils/dist.py:267: UserWarning:
Unknown distribution option: 'entry_points'
warnings.warn(msg)
/Applications/sage/local/lib/python/distutils/dist.py:267: UserWarning:
Unknown distribution option: 'install_requires'
warnings.warn(msg)
running build
running build_py
creating build
creating build/lib
creating build/lib/dot2tex
copying dot2tex/__init__.py -> build/lib/dot2tex
copying dot2tex/dot2tex.py -> build/lib/dot2tex
copying dot2tex/dotparsing.py -> build/lib/dot2tex
running build_scripts
creating build/scripts-2.7
copying and adjusting dot2tex/dot2tex -> build/scripts-2.7
changing mode of build/scripts-2.7/dot2tex from 644 to 755
/Applications/sage/local/lib/python/distutils/dist.py:267: UserWarning:
Unknown distribution option: 'dependency_links'
warnings.warn(msg)
/Applications/sage/local/lib/python/distutils/dist.py:267: UserWarning:
Unknown distribution option: 'entry_points'
warnings.warn(msg)
/Applications/sage/local/lib/python/distutils/dist.py:267: UserWarning:
Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
running build_scripts
running install_lib
copying build/lib/dot2tex/dot2tex.py ->
/Applications/sage/local/lib/python2.7/site-packages/dot2tex
copying build/lib/dot2tex/dotparsing.py ->
/Applications/sage/local/lib/python2.7/site-packages/dot2tex
byte-compiling /Applications/sage/local/lib/python2.7/site-
packages/dot2tex/dot2tex.py to dot2tex.pyc
byte-compiling /Applications/sage/local/lib/python2.7/site-
packages/dot2tex/dotparsing.py to dotparsing.pyc
running install_scripts
copying build/scripts-2.7/dot2tex -> /Applications/sage/local/bin
changing mode of /Applications/sage/local/bin/dot2tex to 755
running install_egg_info
Removing /Applications/sage/local/lib/python2.7/site-
packages/dot2tex-2.8.7-py2.7.egg-info
Writing /Applications/sage/local/lib/python2.7/site-
packages/dot2tex-2.8.7-py2.7.egg-info
real 0m0.725s
user 0m0.315s
sys 0m0.209s
Successfully installed dot2tex-2.8.7.p2
Deleting temporary build directory
/Applications/sage/local/var/tmp/sage/build/dot2tex-2.8.7.p2
Finished installing dot2tex-2.8.7.p2.spkg
}}}
Afterwards, dot2tex-2.8.7.p2.spkg is again in upstream (even though I
deleted it there first).
> What are the contents of `build/pkgs/dot2tex`?
{{{
lolita-4:sage anne$ cd build/pkgs/dot2tex
lolita-4:dot2tex anne$ ls
spkg-install
}}}
and
{{{
lolita-4:dot2tex anne$ more spkg-install
#!/usr/bin/env bash
if [ -z "$SAGE_LOCAL" ]; then
echo >&2 "Error: SAGE_LOCAL undefined - exiting..."
echo >&2 "Maybe run 'sage -sh'?"
exit 1
fi
# Delete any old version or setup.py refuses to overwrite it
rm -rf "$SAGE_LOCAL/lib/python/site-packages/dot2tex"
ls -al
cd src
for patch in ../patches/*.patch; do
[ -f "$patch" ] || continue
patch -p1 <"$patch"
if [ $? -ne 0 ]; then
echo >&2 "Error applying '$patch'"
exit 1
fi
done
python setup.py build
if [ $? -ne 0 ]; then
echo >&2 "Error building dot2tex."
exit 1
fi
python setup.py install
if [ $? -ne 0 ]; then
echo >&2 "Error installing dot2tex."
exit 1
fi
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16026#comment:58>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.