From 2b0b1da8da53ed6b5f69bbcfa1baede225b0e12b Mon Sep 17 00:00:00 2001 From: Szabolcs Dombi Date: Sun, 29 Oct 2023 11:42:13 +0200 Subject: [PATCH] fix broken sdist (#219) * fix broken sdist * Removed unused imports from setup.py --- .gitmodules | 3 --- pyglm-typing | 1 - setup.py | 12 +----------- 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 160000 pyglm-typing diff --git a/.gitmodules b/.gitmodules index 2d31095..ee16f33 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,6 +2,3 @@ path = glm url = https://github.com/Zuzu-Typ/glm branch = PyGLM -[submodule "pyglm-typing"] - path = pyglm-typing - url = https://github.com/esoma/pyglm-typing diff --git a/pyglm-typing b/pyglm-typing deleted file mode 160000 index f47636b..0000000 --- a/pyglm-typing +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f47636b86d07d4f91692235e8dfe0af1bd22e883 diff --git a/setup.py b/setup.py index 92fa6af..ff7e81c 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from codecs import open from os import path -import re, os, shutil +import re module1 = Extension('glm', sources = ['PyGLM.cpp'], include_dirs=["glm/"], extra_compile_args=['-std=c++11']) @@ -29,16 +29,6 @@ long_description = f.read() long_description = long_description.replace("\r", "") -# Update glm-stubs -shutil.copy2("pyglm-typing/src/glm_typing/__init__.py", "glm-stubs/glm_typing.py") -shutil.copy2("pyglm-typing/src/glm-stubs/__init__.py", "glm-stubs") -with open(path.join(here, "pyglm-typing/src/glm-stubs/__init__.pyi"), encoding="utf-8") as f: - typing_data = f.read() - - out_file = open(path.join(here, "glm-stubs/__init__.pyi"), "w", encoding="utf-8") - out_file.write(typing_data.replace("import glm_typing", "from . import glm_typing")) - out_file.close() - setup( name='PyGLM',