I am testing a patch. Basically you really want the html file to be installed like the other python files. Then you can use SAGE_LIB which really is the top level of "site-packages" instead of SAGE_SRC. This is what I am testing right now diff --git a/src/sage/plot/plot3d/base.pyx b/src/sage/plot/plot3d/base.pyx index 0ca1c71..6bb89e5 100644 --- a/src/sage/plot/plot3d/base.pyx +++ b/src/sage/plot/plot3d/base.pyx @@ -407,8 +407,8 @@ cdef class Graphics3d(SageObject): surfaces = flatten_list(surfaces) surfaces = '[' + ','.join(surfaces) + ']'
- from sage.env import SAGE_SRC - filename = os.path.join(SAGE_SRC, 'sage', + from sage.env import SAGE_LIB + filename = os.path.join(SAGE_LIB, 'sage', 'plot', 'plot3d', 'threejs_template.html') f = open(filename, 'r') html = f.read() diff --git a/src/setup.py b/src/setup.py index 7451519..7b96378 100755 --- a/src/setup.py +++ b/src/setup.py @@ -666,7 +666,7 @@ class sage_build_ext(build_ext): dist = self.distribution from sage_setup.find import find_extra_files self.cythonized_files = find_extra_files(dist.packages, - ".", SAGE_CYTHONIZED, ["ntlwrap.cpp"]) + ".", SAGE_CYTHONIZED, ["ntlwrap.cpp", "threejs_template.html"]) for (dst_dir, src_files) in self.cythonized_files: dst = os.path.join(self.build_lib, dst_dir) On 02/12/16 14:47, Paul Masson wrote:
-- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-release+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. Visit this group at https://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.