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

Comment (by fbissey):

 Replying to [comment:22 jdemeyer]:
 > I would still like to use as much as possible the same headers in
 `src/setup.py` and in `cython.py`. You could make a function
 > {{{
 > @cached_function
 > def sage_include_directories(sage_lib_dir):
 >     """
 >     Return the list of include directories for compiling Sage extension
 modules.
 >     """
 >     import numpy   # not a global import!
 >     return [.......]
 > }}}
 > returning the include directories for `cython()` if `sage_lib_dir` is
 `SAGE_LIB` and returning the include directories for `src/setup.py` if
 `sage_lib_dir` is `SAGE_SRC`. I haven't thought about is that much, but I
 think that's the right direction to go.
 >

 That would be clever. I'll try that.

 It is actually quite hard to work out which `.pxi`/`.pxd` will never be
 used which why I included the `padics` files. There is no other python
 sources in that directory so to package them I either have to do it as a
 `data_files`  or introduce a special case in `package_data`. Any chance of
 them being obsolete?

 I'll check my space after commas and correct the surroundings. I usually
 follow the style of what I change rather than move to a new style but I
 guess the space after comma should really be the standard.

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