-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
LookupError: setuptools-scm was unable to detect version for '/tmp' #357
Comments
This relates to pip copying around things without nice access to required Metadata, |
@RonnyPfannschmidt Is this discussion public anywhere? |
work around LookupError: setuptools-scm was unable to detect version for '/tmp/pip-req-build-04p5qh9k'. See pypa/setuptools-scm#357
Is it really? I had the same error message and it was because I by mistake was using @radugrosu, you wrote
Which of the three |
@j08lue I'm seeing this with a much simpler structure:
and when I do
It appears that pip has copied the contents of the |
As pip keeps doing that, until I resolved with the pip developers how to do it reliably, i suggest to do editable installs |
Unfortunately, setuptools_scm can't work with repositories that have multiple packages right now. Relevant issue: pypa/setuptools-scm#357 Instead, we'll use a workflow that pulls the semver from each package's setup.py with a "dev{revision}" suffix. The revision number is retrieved from git describe --tags using the same process that setuptools_scm uses. When a commit has a tag associated with it, there will be no "dev{revision}" suffix applied. This means we need to remember to increment the setup.py version number after each full release. If someone forgets to do this, pre-releases will be made for the previous version. Not ideal, but it won't break the existing stable release.
FWIW, I found the discussion on pypa/pip#7549 very useful - pip 20.1b1 solved my problem but they have since reverted the fix. |
thanks for the crosslink |
Trying to get the build working now it's a mono repo - hitting issues seemingly due to this bug: pypa/setuptools-scm#357
Following discussion in Slack, we don’t seem to be using this functionality, and it’s causing issues with the mono-repo folder structure due to this bug: pypa/setuptools-scm#357
This commit depricates the use of the setuptools_scm package for our versioning. This was done due to bug pypa/setuptools-scm#357. Bump2version will be used instead.
Hello, I have the exact same Pb
From both ./api and pkg python package
My
What could be a temporary workaround ? |
Run
This is the essence of workaround used in https://github.com/deltachat/deltachat-core-rust/blob/8ab3415c5803c7826245d3eca085b873ece38895/python/tests/package_wheels.py |
Did something that was fixed already break again for this? I have a debian buster vagrant machine that throws the "unable to detect version" now and it used to always work.
A debian bullseye vagrant machine with a very similar setup works. borgbackup/borg#7224 this is the code I used (see Vagrantfile). BTW: on misc. ubuntu dists this is broken since a longer while. |
@ThomasWaldmann most likely a different issue, let's open a new one with more details |
tox 4.0 was released recently, and you probably want to add a |
Tox 4 was already resolved a while back for borgbackup This time it was the git uid difference protection git coming in via vagrant vm updates |
since this happens when someone does "pip install ." instead of "pip install -e ." (ie the editable version) pypa/setuptools-scm#357
I'm using the following namespace-package structure (the namespace is in this example
nametest
):The full error message when doing
pip install .
in any of name-common or name-serve is:The contents of setup.py are:
When running
pip install -e .
everything works fine.I'm not sure how to get around this, would appreciate any input. Thanks.
The text was updated successfully, but these errors were encountered: