From 1d87d5d399ec6c0a0026cff68ced9cc04efe73f0 Mon Sep 17 00:00:00 2001 From: Erik Heeren Date: Fri, 9 Feb 2024 17:44:08 +0100 Subject: [PATCH] Add setuptools to install_requires (#2721) * Add setuptools to install_requires When installing a pre-built wheel in a venv on Python 3.12, calling `nrniv` fails because the wrapper script uses `setuptools` for some functionality, so it should also be added as a runtime dependency. * Fix formatting --------- Co-authored-by: Goran Jelic-Cizmek --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c83aaf1a0b..3d2a9ba573 100644 --- a/setup.py +++ b/setup.py @@ -566,7 +566,8 @@ def setup_package(): if f[0] != "_" ], cmdclass=dict(build_ext=CMakeAugmentedBuilder, docs=Docs), - install_requires=["numpy>=1.9.3", "packaging"] + maybe_patchelf, + install_requires=["numpy>=1.9.3", "packaging", "find_libpython", "setuptools"] + + maybe_patchelf, tests_require=["flake8", "pytest"], setup_requires=["wheel"] + maybe_docs + maybe_test_runner + maybe_rxd_reqs, dependency_links=[],