#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 [.......]
> }}}
Lest you think I am not working on this. My attention had to be divided
between a number of things but I am still working on this. Any
recommendation on where to put this function? We do not want to put it in
`cython.py` because we don't want to import any bits of it in `setup.py`
(bad things will happen to you if you do). I don't want to put it anywhere
in `sage_setup` because it should only be used at build time not runtime,
same for `module_list.py`. `env.py` could be interesting if I can get away
with it. The other possibilities:
* its own file
* something I haven't thought about
opinions?
--
Ticket URL: <http://trac.sagemath.org/ticket/18494#comment:53>
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.