Ticket #10493: 10493-cython-0.14.1.patch

File 10493-cython-0.14.1.patch, 2.0 KB (added by robertwb, 9 years ago)
  • sage/rings/polynomial/polynomial_compiled.pyx

    # HG changeset patch
    # User Robert Bradshaw <robertwb@math.washington.edu>
    # Date 1297235646 28800
    # Node ID 37d533c08dd5d78629bbbe9d86b20696ae0187b9
    # Parent  f24ce048fa66831e9e99df553e2be055c7081bbe
    #10493 - Fixes for Cython 0.14.1
    
    diff -r f24ce048fa66 -r 37d533c08dd5 sage/rings/polynomial/polynomial_compiled.pyx
    a b  
    3939    """
    4040
    4141
    42     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     42    #@rename_keyword(deprecated='Sage version 4.6', method="algorithm")
    4343    def __init__(self, coeffs, algorithm='binary'):
    4444        """
    4545        Compiles a polynomial into an evaluation DAG representation which
  • sage/symbolic/expression.pyx

    diff -r f24ce048fa66 -r 37d533c08dd5 sage/symbolic/expression.pyx
    a b  
    45684568            sage: (x^3 - sage.symbolic.constants.pi).gcd(x-sage.symbolic.constants.pi)
    45694569            Traceback (most recent call last):
    45704570            ...
    4571             RuntimeError: gcd: arguments must be polynomials over the rationals
     4571            ValueError: gcd: arguments must be polynomials over the rationals
    45724572            sage: gcd(x^3 - y^3, x-y)
    45734573            -x + y
    45744574            sage: gcd(x^100-y^100, x^10-y^10)
  • setup.py

    diff -r f24ce048fa66 -r 37d533c08dd5 setup.py
    a b  
    765765            cplus = ''
    766766
    767767        # call cython, abort if it failed
    768         cmd = "python `which cython` %s --embed-positions --directive cdivision=True,autotestdict=False -I%s -o %s %s"%(cplus, os.getcwd(), outfile, f)
     768        cmd = "python `which cython` %s --disable-function-redefinition --embed-positions --directive cdivision=True,autotestdict=False,fast_getattr=True -I%s -o %s %s"%(cplus, os.getcwd(), outfile, f)
    769769        r = run_command(cmd)
    770770        if r:
    771771            return r