-
Notifications
You must be signed in to change notification settings - Fork 38
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
flit-scm-py fails to build with LookupError: setuptools-scm was unable to detect version #1220
Comments
I could get the wheel build and install to work by removing the |
I got nothing. My only suggestion would have been to downgrade setuptools-scm, but you already tried that. |
With what Python and Distribution does it build for you? |
This is on 10.14.6
So I was able to build it 1.5 years ago. And trying now also succeeds on py38 but fails on py310:
I recently uninstalled all my py310 mods for testing, so there's a lot more junk in my py38 install that could be a missing BDep. |
py37 also fails for me. Then testing things, if I have bootstrap-modules-py310-20241126-2 (latest), py310 fails. If I downgrade to 20241126-1 (or any of the 20221003 debs) it works. The changes between 20241126-1 and 20241126-2 are things like this, with versioning added to the - 5141 2024-11-28 06:03 ./sw/share/bootstrap-modules-python310/pyparsing.dist-info/METADATA
+ 5141 2024-12-04 04:31 ./sw/share/bootstrap-modules-python310/pyparsing-3.1.4.dist-info/METADATA I would think that helps builds... |
I confirm that building the py38 and py39 versions succeeds with bootstrap-modules-py3N-20241126-2 installed. |
This makes me think that there's some interplay between unknown pymods affecting the version detection. flit-scm has fairly simple dependencies: https://gitlab.com/WillDaSilva/flit_scm/-/blob/main/pyproject.toml?ref_type=heads#L35-39 I do notice that it calls for |
The pip install specifies Other datapoints with bootstrap-modules >= 20241126:
`bdist_wheel` [no longer]> PYTHONPATH=/opt/sw4/share/bootstrap-modules-python310 /opt/sw4/bin/python3.10 -m build --wheel --no-isolation --skip-dependency-check > Building wheel... usage: _in_process.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: _in_process.py --help [cmd1 cmd2 ...] or: _in_process.py --help-commands or: _in_process.py cmd --help error: invalid command 'bdist_wheel' ERROR Backend subprocess exited when trying to invoke build_wheel |
The |
Right; I had previously rebuilt bootstrap-modules to the prior commit, which had the same revision. With the |
Full traceback
The error message seems quite nonsensical since this is the PyPI tarball, with a complete PKG-INFO and current
flit_scm/._version.py
in fact. As the last update upstream was "support setuptools_scm >= 6.4", I have also tried downgrading those from 7.1.0 to 6.4.2, but with the same failure.Running
from setuptools_scm import get_version; get_version()
directly in the source dir produces the same result; it's totally unclear to me why the package tries to enforce getting a setuptools_scm version when the _version.py file already exists...bootstrap-modules-py310 20241126-2
Package manager version: 0.45.99.git
Distribution version: selfupdate-point (bootstrap), 15.0, arm64
Trees: local/main stable/main
Xcode.app: 16.2
Xcode command-line tools: 16.2.0.0.1.1733547573
Max. Fink build jobs: 8
The text was updated successfully, but these errors were encountered: