Open dliptai opened 4 months ago
The pyproject.toml
that is bundled in the release tarball (both on GitHub and on PypI) is
[build-system]
# AVOID CHANGING REQUIRES: IT WILL BE UPDATED BY PYSCAFFOLD!
requires = ["setuptools>=46.1.0", "setuptools<=65.5.1", "setuptools_scm[toml]>=5", "numpy>=1.23.3", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
# See configuration details in https://github.com/pypa/setuptools_scm
version_scheme = "no-guess-dev"
fallback_version = "0.0.0"
which is why doing a pip install
uses setuptools<=65.5.1
(release tarball is from 409ac15f0b8719a0ccdfcd82852138ad682c14c7)
Installing starfit in a Python 3.12 environment results in the following error:
The issue seems to stem from the fact that pip chooses to use
setuptools==65.5.1
instead of70.3.0
, see aboveAs of Python 3.12,
pkgutil
no longer has the classImpImporter
, which was used insetuptools.version
up untilsetuptools<67.3.0
. See https://github.com/pypa/setuptools/commit/6050634818943befefe3a85a12503b6d8a1e8106The recommended solution is to just enforce
setuptools>=67.3.0
instarfit