Commit 16a66e2e authored by Leonhard Seidelmann's avatar Leonhard Seidelmann
Browse files

Include Py2DM wheel

parent 5bae997b
......@@ -4,7 +4,6 @@ import os
import warnings
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Union
import numpy as np
import py2dm
from ..abc import ElevationSource, SpatialCollection, SupportsSpatial
from ..algorithms import (counting_sort, dist_2d, interpolate_triangle,
point_in_polygon_concave, point_in_polygon_convex,
......@@ -14,6 +13,17 @@ from ..log import logger
from ..types import Point2D, Point3D, Polygon2D, Triangle2D, Triangle3D
from .geometry import Node
try:
import py2dm
except ModuleNotFoundError:
import sys
wheel_dir = os.path.dirname(__file__)
wheel_dir, _ = os.path.split(wheel_dir)
wheel_dir = os.path.join(wheel_dir, 'packages',
'py2dm-0.1.0-py3-none-any.whl')
sys.path.append(wheel_dir)
import py2dm
# Type aliases
_NodeOrPt = Union[Tuple['MeshNode', 'MeshNode', 'MeshNode'],
Tuple[Point3D, Point3D, Point3D]]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment