#18494: Install sage headers and auxiliary files (.h/.pxd/.pxi files)
-------------------------------------+-------------------------------------
       Reporter:  fbissey            |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  critical           |    Milestone:  sage-6.8
      Component:  distribution       |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  François Bissey    |    Reviewers:  Jeroen Demeyer
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/fbissey/trac18494                |  4e745ce5c0d80d3f7043910bd9c8c2f1908dd2ef
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by jdemeyer):

 * status:  needs_review => needs_work


Comment:

 {{{
 sage -t --long src/sage/repl/interpreter.py
 **********************************************************************
 File "src/sage/repl/interpreter.py", line 77, in sage.repl.interpreter
 Failed example:
     shell.run_cell('1/0')
 Expected:
 ---------------------------------------------------------------------------
     .../sage/rings/integer_ring.pyx in
 sage.rings.integer_ring.IntegerRing_class._div
 (.../build/cythonized/sage/rings/integer_ring.c:...)()
         ...         cdef rational.Rational x =
 rational.Rational.__new__(rational.Rational)
         ...         if mpz_sgn(right.value) == 0:
         ...             raise ZeroDivisionError('Rational division by
 zero')
         ...         mpz_set(mpq_numref(x.value), left.value)
         ...         mpz_set(mpq_denref(x.value), right.value)
     <BLANKLINE>
     ZeroDivisionError: Rational division by zero
 Got:
 ---------------------------------------------------------------------------
     ZeroDivisionError                         Traceback (most recent call
 last)
     <ipython-input-1-6f88eab09598> in <module>()
     ----> 1 Integer(1)/Integer(0)
     <BLANKLINE>
     /usr/local/src/sage-config/src/sage/structure/element.pyx in
 sage.structure.element.RingElement.__div__
 (build/cythonized/sage/structure/element.c:18132)()
        2034                 return
 (<RingElement>self)._idiv_(<RingElement>right)
        2035             else:
     -> 2036                 return
 (<RingElement>self)._div_(<RingElement>right)
        2037         global coercion_model
        2038         return coercion_model.bin_op(self, right, div)
     <BLANKLINE>
     /usr/local/src/sage-config/src/sage/rings/integer.pyx in
 sage.rings.integer.Integer._div_
 (build/cythonized/sage/rings/integer.c:12151)()
        1748         # This is vastly faster than doing it here, since here
        1749         # we can't cimport rationals.
     -> 1750         return the_integer_ring._div(self, right)
        1751
        1752     def __floordiv__(x, y):
     <BLANKLINE>
     /usr/local/src/sage-config/src/sage/rings/integer_ring.pyx in
 sage.rings.integer_ring.IntegerRing_class._div
 (build/cythonized/sage/rings/integer_ring.c:4900)()
         420         cdef rational.Rational x =
 rational.Rational.__new__(rational.Rational)
         421         if mpz_sgn(right.value) == 0:
     --> 422             raise ZeroDivisionError('Rational division by
 zero')
         423         mpz_set(mpq_numref(x.value), left.value)
         424         mpz_set(mpq_denref(x.value), right.value)
     <BLANKLINE>
     ZeroDivisionError: Rational division by zero
 **********************************************************************
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18494#comment:90>
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.

Reply via email to