#21014: make: docbuilding should depend on jmol
-------------------------------------+-------------------------------------
Reporter: jhpalmieri | Owner:
Type: defect | Status: needs_info
Priority: blocker | Milestone: sage-7.3
Component: build | Resolution:
Keywords: | Merged in:
Authors: John Palmieri | Reviewers: Jeroen Demeyer, Dima
| Pasechnik
Report Upstream: N/A | Work issues:
Branch: u/jhpalmieri/doc- | Commit:
build-depends-on-jmol | d741fbb99328eb03aea7c78db8d8370700ee705c
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
Further analysis points to this `if` switch in
`src/sage/plot/plot3d/base.pyx` in the `_rich_repr_jmol()` function:
{{{
if not jdata.is_jvm_available():
# We can only use JMol to generate preview if a jvm is
installed
from sage.repl.rich_output.output_graphics import
OutputImagePng
tachyon = self._rich_repr_tachyon(OutputImagePng, **opts)
tachyon.png.save_as(preview_png)
else:
# Java needs absolute paths
# On cygwin, they should be native ones
scene_native = scene_zip
import sys
if sys.platform == 'cygwin':
from subprocess import check_output, STDOUT
scene_native = check_output(['cygpath', '-w',
scene_native],
stderr=STDOUT).rstrip()
script = '''set defaultdirectory "{0}"\nscript
SCRIPT\n'''.format(scene_native)
jdata.export_image(targetfile=preview_png, datafile=script,
image_type="PNG",
figsize=opts['figsize'][0])
}}}
So the problem only occurs if Java is installed.
But this leaves the question: if Tachyon works, why not always use Tachyon
to produce the plots?
--
Ticket URL: <https://trac.sagemath.org/ticket/21014#comment:26>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.