From 44f56f15065b0e083746a3ed94a366e28657626a Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 21 Nov 2024 13:12:37 +0000 Subject: [PATCH 1/3] empty From 0dc5d12ce5c5df879abd31d7e24c22a4d345e1da Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 21 Nov 2024 13:32:56 +0000 Subject: [PATCH 2/3] Remove torch dependency --- setup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 1455d7b..e6eed4c 100644 --- a/setup.py +++ b/setup.py @@ -108,11 +108,11 @@ def make_extension(): def get_requirements(): - pytorch_dep = os.getenv("TORCH_PACKAGE_NAME", "torch") - if os.getenv("PYTORCH_VERSION"): - pytorch_dep += "==" + os.getenv("PYTORCH_VERSION") - - return [pytorch_dep] + if pytorch_dep := os.getenv("TORCH_PACKAGE_NAME"): + if os.getenv("PYTORCH_VERSION"): + pytorch_dep += "==" + os.getenv("PYTORCH_VERSION") + return [pytorch_dep] + return [] if __name__ == "__main__": From 8cf68b50c49dae24bceeec3d66abd53c10fdd2c5 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 21 Nov 2024 13:39:32 +0000 Subject: [PATCH 3/3] like for real --- setup.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/setup.py b/setup.py index e6eed4c..7f2fd4e 100644 --- a/setup.py +++ b/setup.py @@ -107,14 +107,6 @@ def make_extension(): ) -def get_requirements(): - if pytorch_dep := os.getenv("TORCH_PACKAGE_NAME"): - if os.getenv("PYTORCH_VERSION"): - pytorch_dep += "==" + os.getenv("PYTORCH_VERSION") - return [pytorch_dep] - return [] - - if __name__ == "__main__": with open("README.md") as f: @@ -135,7 +127,7 @@ def get_requirements(): packages=find_packages(exclude=("test",)), package_data={PACKAGE_NAME: ["*.dll", "*.dylib", "*.so"]}, zip_safe=False, - install_requires=get_requirements(), + install_requires=[], python_requires=">=3.9", ext_modules=[make_extension()], cmdclass={