Allow embedding tuples in SR.
Merge remote-tracking branch 'trac/develop' into t/14780/python_tuples_in_SR
declare the pynac templates extern
use md5 -q if necessary
alternate fix
Create IPython config dir if necessary
updated pynac tarball
add doctests for #15972
updated to pynac 0.3.2
Remove old version of ft2build.h
dateutils requires setuptools
fix a bug in Denis Simon's 2-descent program
Correct typo in sage/symbolic/ring.pyx.
Trac #15942: fix md5 in sage-spkg

{{{
actual=`md5 $file | sed 's/[^0-9a-f].*//'`
}}}
makes no sense, because that's not what's returned (at least on Macs).
{{{
md5 -q
}}}
actually does work, though I don't know how portable this is.

URL: http://trac.sagemath.org/15942
Reported by: kcrisman
Ticket author(s): Volker Braun
Reviewer(s): Karl-Dieter Crisman
Trac #15972: IPython ProfileDirError if IPython was never run

The following fails if IPython was never run before:
{{{
./sage -t src/sage/misc/ascii_art.py
**********************************************************************
File "src/sage/misc/ascii_art.py", line 42, in sage.misc.ascii_art
Failed example:
    shell = get_test_shell()
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
        self.execute(example, compiled, test.globs)
      File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
        exec compiled in globs
      File "<doctest sage.misc.ascii_art[6]>", line 1, in <module>
        shell = get_test_shell()
      File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/misc/interpreter.py", line 549, in get_test_shell
        app.initialize(argv=[])
      File "<string>", line 2, in initialize
      File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/IPython/config/application.py", line 89, in catch_config_error
        return method(app, *args, **kwargs)
      File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/IPython/terminal/ipapp.py", line 312, in initialize
        super(TerminalIPythonApp, self).initialize(argv)
      File "<string>", line 2, in initialize
      File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/IPython/config/application.py", line 89, in catch_config_error
        return method(app, *args, **kwargs)
      File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/IPython/core/application.py", line 381, in initialize
        self.load_config_file()
      File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/misc/interpreter.py", line 626, in load_config_file
        get_ipython_dir(), 'sage').location
      File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/IPython/core/profiledir.py", line 242, in
find_profile_dir_by_name
        raise ProfileDirError('Profile directory not found in paths: %s'
% dirname)
    ProfileDirError: Profile directory not found in paths: profile_sage
**********************************************************************
}}}

Running `./sage` once fixes this problem but the following always fails:
{{{
./sage --nodotsage -t src/sage/misc/ascii_art.py
}}}

URL: http://trac.sagemath.org/15972
Reported by: jdemeyer
Ticket author(s): John Palmieri
Reviewer(s): Volker Braun
Trac #16002: matplotlib-1.3.1 does not install

This breaks the upgrade to 6.2.beta5.

Logfile: https://www.dropbox.com/s/wmfrp13mnm148i1/matplotlib-1.3.1.log

System is Ubuntu 12.04.4 LTS in a virtualbox on a 64bit machine. Would
upgrading help?

URL: http://trac.sagemath.org/16002
Reported by: darij
Ticket author(s): John Palmieri
Reviewer(s): François Bissey
Trac #16015: dateutils requires setuptools

URL: http://trac.sagemath.org/16015
Reported by: vbraun
Ticket author(s): Volker Braun
Reviewer(s): John Palmieri
Trac #16022: simon_two_descent sometimes gives wrong answers

The current version of Denis Simon's 2-descent program (in Sage since
#11005) has a bug:
{{{
sage: K.<y> = NumberField(x^4 + x^2 - 7);
sage: E = EllipticCurve(K, [1, 0, 5*y^2 + 16, 0, 0])
sage: E.simon_two_descent(lim1=2, limtriv=3)
[0, 0, []]
}}}
The rank is in fact 1, and a correct return value would be `(1, 1,
[(-369/25*y^3 + 539/25*y^2 - 1178/25*y + 1718/25 : -27193/125*y^3 +
39683/125*y^2 - 86816/125*y + 126696/125 : 1)])`.

This ticket is just to fix this as quickly as possible; it should
eventually be fixed in a new version of Simon's program.

(See #15608 for a list of tickets related to `simon_two_descent`.)

URL: http://trac.sagemath.org/16022
Reported by: pbruin
Ticket author(s): Peter Bruin
Reviewer(s): Marc Masdeu
Trac #14780: allow embedding python tuples in SR

Attached patch allows embedding Python tuples in symbolic expressions:
{{{
sage: t = SR._force_tuple((1, 2, x, x+1, x+2))
sage: t
(1, 2, x, x + 1, x + 2)
sage: t.subs(x = 2*x^2)
(1, 2, 2*x^2, 2*x^2 + 1, 2*x^2 + 2)
sage: t.op[0]
1
sage: t.op[2]
x
}}}

Includes pynac 0.3.2 update for explicit template instantiatitons

http://boxen.math.washington.edu/home/vbraun/upstream/pynac-0.3.2.tar.bz
2

URL: http://trac.sagemath.org/14780
Reported by: burcin
Ticket author(s): Burcin Erocal, Volker Braun
Reviewer(s): Volker Braun, Jean-Pierre Flori