leif wrote:
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...

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)


It seems the interpreters for "fast_callable" get regenerated (and hence also re-"cythonized") because sage-clone does not (or no longer) properly copy devel/sage/sage/ext/interpreters/timestamp either:

Building interpreters for fast_callable
Updating Cython code....
Building sage/plot/plot3d/parametric_surface.pyx because it depends on sage/ext/interpreters/wrapper_rdf.pxd.
Building modified file sage/ext/interpreters/wrapper_rdf.pyx.
Building modified file sage/ext/interpreters/wrapper_cdf.pyx.
Building modified file sage/ext/interpreters/wrapper_rr.pyx.
Building modified file sage/ext/interpreters/wrapper_py.pyx.
Building modified file sage/ext/interpreters/wrapper_el.pyx.
...

(This is what I meant by "avoids rebuilding of /most of/ the Cython-generated code".)


-leif

--
() 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 sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
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