From 29098787b2a24eaf5d7f374eca825947475c9a87 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 27 Oct 2015 15:11:54 -0300 Subject: sagemath-6.9-3.parabola1: NTL 9.5 & pari-sage 2.8.1813 rebuild * rename sources dir to "source", src breaks lazy imports for some reason * use upstream provided jupyter kernel * fix icons in jupyter notebook --- libre/sagemath/jupyter-path.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libre/sagemath/jupyter-path.patch (limited to 'libre/sagemath/jupyter-path.patch') diff --git a/libre/sagemath/jupyter-path.patch b/libre/sagemath/jupyter-path.patch new file mode 100644 index 000000000..3201e9a6e --- /dev/null +++ b/libre/sagemath/jupyter-path.patch @@ -0,0 +1,31 @@ +--- src/sage/repl/ipython_kernel/install.py.orig 2015-10-23 19:23:39.728456590 +0000 ++++ src/sage/repl/ipython_kernel/install.py 2015-10-23 19:24:00.965018978 +0000 +@@ -13,8 +13,7 @@ + SAGE_ROOT, SAGE_DOC, SAGE_LOCAL, SAGE_EXTCODE, + SAGE_VERSION + ) +-from jupyter_core.paths import ENV_JUPYTER_PATH +-JUPYTER_PATH = ENV_JUPYTER_PATH[0] ++JUPYTER_PATH = os.environ.get('JUPYTER_PATH') + + class SageKernelSpec(object): + +@@ -151,7 +151,7 @@ + '{connection_file}'] + """ + return [ +- os.path.join(SAGE_ROOT, 'sage'), ++ os.path.join(SAGE_ROOT, 'bin', 'sage'), + '--python', + '-m', 'sage.repl.ipython_kernel', + '-f', '{connection_file}', +@@ -208,7 +208,7 @@ + sage: spec._symlink_resources() # not tested + """ + path = os.path.join(SAGE_EXTCODE, 'notebook-ipython') +- for filename in os.listdir(path): ++ for filename in os.listdir('ext/notebook-ipython'): + self.symlink( + os.path.join(path, filename), + os.path.join(self.kernel_dir, filename) + -- cgit v1.2.3-54-g00ecf