leif wrote:
Eric Gourgoulhon wrote:
I confirm this behavior on a fresh install of version 5.9 from the
sources: sage -clone triggers the recompilation of the Cython sources.
In version 5.8, it did not. Don't know the reason for this...

FWIW, it did still work in 5.9.beta2.

Probably #13031 [1] (merged into 5.9.beta4), or one of its follow-ups(?)
is to blame...

For the impatient, the following at least avoids rebuilding of (most of the) Cython-generated files:

diff --git a/sage-clone b/sage-clone
--- a/sage-clone
+++ b/sage-clone
@@ -53,6 +53,10 @@

 cpdir(os.path.abspath('sage/sage'), os.path.abspath(branch + '/sage'))

+if os.path.isfile('sage/.cython_version'):
+    print "Copying over hidden Cython version file..."
+    os.link('sage/.cython_version', branch+'/.cython_version')
+
 def copy_dtree(src_dir, dest_dir):
     src_root = os.path.abspath(src_dir)
     dest_root = os.path.abspath(dest_dir)


(To be applied to the Sage scripts repo, in $SAGE_ROOT/local/bin/.)


It seems also all(?) Python files get re-(byte-)compiled; don't know yet why... (but the latter doesn't take as long as re-"cythonizing"* does)


-leif

______________
* What an ill-chosen name!


[1] http://trac.sagemath.org/sage_trac/ticket/13031


Le vendredi 10 mai 2013 14:53:27 UTC+2, vdelecroix a écrit :

    Hi,

    It seems that the behavior of "sage -clone" changes around the
    version 5.9. I freshly compiled a version of 5.10.beta2 and when I
    do a clone it recompiles the wholse sage sources (but hopefully not
    the auxilliary spkg). The first line in the log of "sage -clone"
    which differs from previous version is the following

    Updating Cython code....
    Compiling sage/algebras/quatalg/quaternion_algebra_element.pyx
    because it depends on ./sage/structure/sage_object.pxd
    ...

    I was not able to find some information elsewhere.

    Best,
    Vincent

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" 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-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to