mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-10 23:18:51 -04:00
Also: - Create the sagemath-data-combinatorial_designs subpackage. - Create the sagemath-notebook-export subpackage. - Unbundle the LaTeX makecmds style. - Install LaTeX style files in a more canonical place.
25 lines
1.3 KiB
Diff
25 lines
1.3 KiB
Diff
diff -up src/sage/interfaces/jmoldata.py.orig src/sage/interfaces/jmoldata.py
|
|
--- src/sage/interfaces/jmoldata.py.orig 2018-05-05 16:21:24.000000000 -0600
|
|
+++ src/sage/interfaces/jmoldata.py 2018-05-16 13:30:58.803927423 -0600
|
|
@@ -148,8 +148,6 @@ class JmolData(SageObject):
|
|
sage: print(os.path.exists(testfile)) # optional -- java
|
|
True
|
|
"""
|
|
- # Set up paths, file names and scripts
|
|
- jmolpath = os.path.join(SAGE_LOCAL, "share", "jmol", "JmolData.jar")
|
|
target_native = targetfile
|
|
import sys
|
|
if sys.platform == 'cygwin':
|
|
@@ -174,10 +172,8 @@ class JmolData(SageObject):
|
|
env = dict(os.environ)
|
|
env['LC_ALL'] = 'C'
|
|
env['LANG'] = 'C'
|
|
- subprocess.call(["java", "-Xmx512m", "-Djava.awt.headless=true",
|
|
- "-jar", jmolpath, "-iox", "-g", size_arg,
|
|
- "-J", launchscript, "-j", imagescript],
|
|
- stdout=jout, stderr=jout, env=env)
|
|
+ subprocess.call(["jmol", "-n", "-g", size_arg,
|
|
+ "-J", launchscript, "-j", imagescript], stdout=jout)
|
|
if not os.path.isfile(targetfile):
|
|
raise RuntimeError("Jmol failed to create file %s, see %s for details"%(repr(targetfile), repr(scratchout)))
|
|
os.unlink(scratchout)
|