From 3a6c3a8312c9a19a09f0388d409bb8b8a0a37bb7 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 10 Jul 2024 21:37:31 +0500 Subject: [PATCH] add typing-extensions to ifcopenshell explicit dependencies typing-extensions is official python package for supporting typing features on older versions. It was kind of included in both blenderbim and to ifcopenshell as typing-extensions is also numpy dependency, included it explicitly just in case. --- src/blenderbim/Makefile | 2 ++ src/ifcopenshell-python/pyproject.toml | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/Makefile b/src/blenderbim/Makefile index 6daaa6f0cd..d20d46f0c8 100644 --- a/src/blenderbim/Makefile +++ b/src/blenderbim/Makefile @@ -171,6 +171,8 @@ endif mkdir dist/working cd dist/working && $(PYTHON) -m venv env cd dist/working && mkdir site-packages + # IfcOpenShell dependency - support for new typing features + cd dist/working && . env/bin/activate && $(PIP) install typing_extensions --target=./site-packages # Required by IfcCSV cd dist/working && . env/bin/activate && $(PIP) install pandas $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --target=./site-packages # Pandas ships with very heavy tests diff --git a/src/ifcopenshell-python/pyproject.toml b/src/ifcopenshell-python/pyproject.toml index 154aa7f30f..c15b102587 100644 --- a/src/ifcopenshell-python/pyproject.toml +++ b/src/ifcopenshell-python/pyproject.toml @@ -15,7 +15,14 @@ classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", ] -dependencies = ["shapely", "numpy", "isodate", "python-dateutil", "lark"] +dependencies = [ + "shapely", + "numpy", + "isodate", + "python-dateutil", + "lark", + "typing-extensions", +] [project.optional-dependencies] geometry = ["mathutils"]