mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
Fix #4837. Make mathutils dependency optional.
In the long term, I'd like to replace mathutils with numpy.
This commit is contained in:
@@ -25,7 +25,7 @@ import ifcopenshell.api
|
|||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.representation
|
import ifcopenshell.util.representation
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
from math import cos, sin, pi, tan, radians, degrees, atan, sqrt, ceil
|
from math import cos, sin, pi, tan, radians, degrees, atan, sqrt
|
||||||
from typing import Union, Optional, Literal, Any, Sequence
|
from typing import Union, Optional, Literal, Any, Sequence
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
from mathutils import Vector, Matrix
|
from mathutils import Vector, Matrix
|
||||||
|
|||||||
@@ -15,7 +15,11 @@ classifiers = [
|
|||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
||||||
]
|
]
|
||||||
dependencies = ["mathutils", "shapely", "numpy", "isodate", "python-dateutil", "lark"]
|
dependencies = ["shapely", "numpy", "isodate", "python-dateutil", "lark"]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
geometry = ["mathutils"]
|
||||||
|
dev = ["pytest"]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
"Homepage" = "http://ifcopenshell.org"
|
"Homepage" = "http://ifcopenshell.org"
|
||||||
|
|||||||
Reference in New Issue
Block a user