diff options
author | Garaba Flórián <garaba.florian@protonmail.com> | 2021-04-17 10:23:29 -0300 |
---|---|---|
committer | Masanori Ogino <167209+omasanori@users.noreply.github.com> | 2021-04-22 14:06:56 +0900 |
commit | a0f410646c54c19f7bc239f25178cb1ffe7608d4 (patch) | |
tree | e160629c5756c5a44f89a09b0cf497c1773a05bb /pkgs/applications/science/math/sage/patches | |
parent | 090165d7c17f814cfe458b22026fda026888f78b (diff) | |
download | nixpkgs-a0f410646c54c19f7bc239f25178cb1ffe7608d4.tar nixpkgs-a0f410646c54c19f7bc239f25178cb1ffe7608d4.tar.gz nixpkgs-a0f410646c54c19f7bc239f25178cb1ffe7608d4.tar.bz2 nixpkgs-a0f410646c54c19f7bc239f25178cb1ffe7608d4.tar.lz nixpkgs-a0f410646c54c19f7bc239f25178cb1ffe7608d4.tar.xz nixpkgs-a0f410646c54c19f7bc239f25178cb1ffe7608d4.tar.zst nixpkgs-a0f410646c54c19f7bc239f25178cb1ffe7608d4.zip |
sage: use threejs fork
Diffstat (limited to 'pkgs/applications/science/math/sage/patches')
-rw-r--r-- | pkgs/applications/science/math/sage/patches/dont-grep-threejs-version-from-minified-js.patch | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/pkgs/applications/science/math/sage/patches/dont-grep-threejs-version-from-minified-js.patch b/pkgs/applications/science/math/sage/patches/dont-grep-threejs-version-from-minified-js.patch deleted file mode 100644 index 88cb66506b1..00000000000 --- a/pkgs/applications/science/math/sage/patches/dont-grep-threejs-version-from-minified-js.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/src/sage/repl/rich_output/display_manager.py b/src/sage/repl/rich_output/display_manager.py -index fb21f7a9c9..f39470777d 100644 ---- a/src/sage/repl/rich_output/display_manager.py -+++ b/src/sage/repl/rich_output/display_manager.py -@@ -749,9 +749,9 @@ class DisplayManager(SageObject): - import sage.env - import re - import os -- with open(os.path.join(sage.env.THREEJS_DIR, 'build', 'three.min.js')) as f: -+ with open(os.path.join(sage.env.THREEJS_DIR, 'build', 'three.js')) as f: - text = f.read().replace('\n','') -- version = re.search(r'REVISION="(\d+)"', text).group(1) -+ version = re.search(r"REVISION = '(\d+)'", text).group(1) - return """ - <script src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r{0}/build/three.min.js"></script> - <script src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r{0}/examples/js/controls/OrbitControls.js"></script> |