#13245: sage --clone: do not rebuild the entire Sage library, and do not rebuild
the docs
-------------------------------------------------+--------------------------
Reporter: jhpalmieri | Owner: leif
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-5.10
Component: scripts | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: John Palmieri
Authors: John Palmieri, Leif Leonhardy | Merged in:
Dependencies: | Stopgaps:
-------------------------------------------------+--------------------------
Comment (by leif):
Replying to [comment:4 leif]:
> Oh, forgot: Cython-generated header files (`*.h`) don't contain a
special comment on that on the first line (which is probably an upstream
Cython bug), so the following currently doesn't work as expected either:
> {{{
> #!python
> if ext in ['.h', '.c', '.cpp']:
> if 'Cython' in open(src + '/' + F).readline():
> os.link(src + '/' + F, dest + '/' +F)
> os.utime(dest + '/' +F, None)
> }}}
>
> (For the moment, we could look for `^#ifndef __PYX_HAVE__sage__` in
those, probably even without the `sage__`.)
[[BR]]
I'm having another header file in the original but not the clone:
`sage/rings/complex_double_api.h`, which starts with
{{{
#!c
#ifndef __PYX_HAVE_API__sage__rings__complex_double
#define __PYX_HAVE_API__sage__rings__complex_double
#include "Python.h"
#include "complex_double.h"
static struct __pyx_obj_4sage_5rings_14complex_double_ComplexDoubleElement
*(*__pyx_f_4sage_5rings_14complex_double_new_ComplexDoubleElement)(void) =
0;
#define new_ComplexDoubleElement
__pyx_f_4sage_5rings_14complex_double_new_ComplexDoubleElement
#ifndef __PYX_HAVE_RT_ImportModule
#define __PYX_HAVE_RT_ImportModule
}}}
(and is explicitly listed in `.hgignore`).
I couldn't find any places where this is actually used though, nor do I
know where it originates from.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13245#comment:19>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.