Skip to content

Commit 57caa82

Browse files
committed
avoid load builtins before installation
1 parent 907c762 commit 57caa82

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

pymathics/vectorizedplot/__init__.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,30 @@
2323
"""
2424

2525

26-
from pymathics.vectorizedplot.plot_plot3d import ContourPlot3D, ParametricPlot3D, SphericalPlot3D
2726
from pymathics.vectorizedplot.version import __version__
28-
29-
__all__ = (
30-
"ContourPlot3D",
31-
"ParametricPlot3D",
32-
"SphericalPlot3D",
33-
"__version__",
34-
"pymathics_version_data"
35-
)
27+
try:
28+
from pymathics.vectorizedplot.plot_plot3d import ContourPlot3D, ParametricPlot3D, SphericalPlot3D
29+
30+
__all__ = (
31+
"ContourPlot3D",
32+
"ParametricPlot3D",
33+
"SphericalPlot3D",
34+
"__version__",
35+
"pymathics_version_data"
36+
)
37+
except Exception:
38+
__all__ = (
39+
"__version__",
40+
"pymathics_version_data"
41+
)
3642

3743
# To be recognized as an external mathics module, the following variable
3844
# is required:
3945
#
4046
pymathics_version_data = {
4147
"author": "The Mathics3 Team",
4248
"version": __version__,
43-
"requires": [],
49+
"requires": ["scikit-image"],
4450
}
4551

4652
# This tells documentation how to sort this module

0 commit comments

Comments
 (0)