-
-
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
Clean sdist apparently missing egg-info? #30
Comments
@mgedmin: Am I parsing your previous comment correctly that the "clean sdist" does not have egg-info and that that's intentional? |
"Building a clean sdist" == copy all versioned files into an empty temporary directory, then run This is more or less what you'd get if you exported the most recent VCS revision, except it also contains uncommitted modifications and files that are locally added but not committed yet. This behavior is intentional. It was intended to support the "building an sdist from a VCS export" use-case, as well as making sure "building an sdist from a VCS checkout that setuptools doesn't understand" isn't broken when your current setuptools version actually understands your VCS (see issue #1). |
I've found a sort-of workaround for jorji, because pbr supports overriding the version-finding logic with an environment variable. (See reffed commit.) |
I think I'll close this issue, since you've a workaround, and I've no ideas how to make your use case work without regressing either bug #1 (if I copy *.egg-info to the temp dir) or failing to detect gaps in MANIFEST.in when setuptools-git is installed (if I copy .git metadata to the temp dir). |
This issue started on a different ticket.
check-manifest 0.21 fails on lvh/jorji:
This is quite strange, because manually creating an sdist, unpacking it, and then creating and sdist within the unpacked sdist works totally fine:
This isn't in a git repository anymore:
Then build a new sdist:
This is most likely related to jorji using pbr. pbr is used by most openstack projects, so hopefully we can get it working for those and put check-manifest in all the builds :)
It grabs the version from version control (something akin to
git describe
) when creating the original sdist, and grabs it from egg-info when installing from an sdist. I have no idea why it fails when check-manifest does it.The text was updated successfully, but these errors were encountered: