Skip to content

Commit

Permalink
Add setuptools to install_requires (#2721)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
heerener and JCGoran authored Feb 9, 2024
1 parent 85d9374 commit 1d87d5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[],
Expand Down

0 comments on commit 1d87d5d

Please sign in to comment.