Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setuptools version 69 requires pyproject.toml #89

Closed
SimonMaenaut opened this issue Apr 27, 2024 · 1 comment · Fixed by #90
Closed

Setuptools version 69 requires pyproject.toml #89

SimonMaenaut opened this issue Apr 27, 2024 · 1 comment · Fixed by #90

Comments

@SimonMaenaut
Copy link
Contributor

SimonMaenaut commented Apr 27, 2024

As noted in the setuptools documentation setup_requires in setup.py was deprecated and a pyproject.toml file is required.

In addition to

setup_requires=['numpy', 'cython', 'setuptools_scm'],

and

cpnest/setup.cfg

Lines 4 to 6 in 249c0e2

[options]
setup_requires =
setuptools_scm numpy cython

a new pyproject.toml file should be added:

[build-system]
requires = ["setuptools_scm", "numpy", "cython"]

This made it possible to install cpnest on python 3.12 with setuptools 69.5.1 and should be compatible with older versions.

@SimonMaenaut SimonMaenaut changed the title Setuptools version 69 requires pyproject.toml for build-system requirements Setuptools version 69 requires pyproject.toml Apr 27, 2024
@johnveitch
Copy link
Owner

Closed by #90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants