-
Notifications
You must be signed in to change notification settings - Fork 4
/
dependencies.py
33 lines (27 loc) · 944 Bytes
/
dependencies.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from sverchok.dependencies import SvDependency
ex_dependencies = dict()
try:
import sverchok
from sverchok.utils.sv_logging import sv_logger
from sverchok.dependencies import (
SvDependency,
ensurepip,
pip, scipy, geomdl, skimage,
mcubes, circlify,
FreeCAD
)
sverchok_d = ex_dependencies["sverchok"] = SvDependency("Sverchok", "https://github.com/nortikin/sverchok")
sverchok_d.module = sverchok
except ImportError:
message = "Sverchok addon is not available. Sverchok-Open3d will not work."
print(message)
sverchok = None
opend3D_d = ex_dependencies["open3d"] = SvDependency("open3d", "http://www.open3d.org/")
opend3D_d.pip_installable = True
try:
import open3d
opend3D_d.module = open3d
except ImportError:
message = "open3d package is not available, the addon will not work"
sv_logger.info(message)
open3d = None