#18494: Install sage headers and auxiliary files (.h/.pxd/.pxi files)
-------------------------------------+-------------------------------------
       Reporter:  fbissey            |        Owner:
           Type:  defect             |       Status:  positive_review
       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                |  56929a9f831d77d5022fe8969ca8365db0487285
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by frederichan):

 Sorry for the delay but I  still have problems with trac12375. I have
 tried to isolate the problem:
 (can you reproduce it?)

 setup.py:
 {{{
 #!/usr/bin/env sage -python
 from sage.env import *
 import os

 ###
 try:
     # Sage >= 6.8
     from sage.env import sage_include_directories
 except ImportError:
     # Sage < 6.8
     def sage_include_directories(source=True):
         return [
             os.path.join(SAGE_LOCAL, "include"),
             os.path.join(SAGE_LOCAL, "include", "csage"),
             os.path.join(SAGE_SRC),
             os.path.join(SAGE_SRC, "sage", "ext"),
             ]
 ###

 from distutils.core import setup
 from distutils.extension import Extension


 cmdclass = { }
 ext_modules = [ ]

 include_dirs=sage_include_directories(True)

 from Cython.Distutils import build_ext

 ext_modules+=[Extension(
                    "giacpy",                 # name of extension
                    ["giacpy.pyx"], #  our Cython source
                    include_dirs=include_dirs,
                    language="c++")]
 cmdclass={'build_ext': build_ext}


 setup(
     ext_modules=ext_modules,
     cmdclass=cmdclass
     )
 }}}

 and giacpy.pyx
 {{{
 from sage.rings.integer cimport Integer
 from sage.env import * ##without this line it builts
 include 'sage/ext/interrupt.pxi'
 include 'sage/ext/stdsage.pxi'
 }}}

 gives:
 {{{
 giacpy.cpp: In function ‘int __pyx_import_star_set(PyObject*, PyObject*,
 char*)’:
 giacpy.cpp:3635:55: error: ‘__pyx_convert__from_py_sage_signals_t’ was not
 declared in this scope
      _signals = __pyx_convert__from_py_sage_signals_t(o); if
 (PyErr_Occurred()) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 45;
 __pyx_clineno = __LINE__; goto __pyx_L2_error;};

 }}}

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