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

Use with setup.py bdist_wheel and Python wheels? #102

Closed
nkuehnle opened this issue Jun 27, 2024 · 3 comments
Closed

Use with setup.py bdist_wheel and Python wheels? #102

nkuehnle opened this issue Jun 27, 2024 · 3 comments

Comments

@nkuehnle
Copy link

I'm not too familiar with the way in which wheels actually function, but I am wondering if it's at all possible to use this with a wheel? Right now if you use steptools-git-versioning, if you build a wheel it gets version 0.0.0. Is there any recipe or workaround for this to keep behavior consistent if I build the wheel from a repo and then distribute just that wheel?

@dolfinus
Copy link
Owner

dolfinus commented Jun 28, 2024

if it's at all possible to use this with a wheel

Why it should not be possible? Wheel version is calculated during the build process, where .git folder is present. After .wheel file is built, it does not include setuptools-git-versioning at all.

@nkuehnle
Copy link
Author

nkuehnle commented Jun 28, 2024

Ah interesting, I am getting behavior where it is not applying the same version when I create a wheel using python setup.py bdist_wheel with as with pip install . I'll try to debug briefly a bit more on my end and see if I can create a minimum reproducible example later or if it's just soemthing odd that I've done. The code in question is proprietary/on my company's GH enterprise repo.

Edit: to clarify when I build the wheel it just always gives me a 0.0.0.
Edit 2: I am using a pyproject.toml if that matters at all as well

@dolfinus
Copy link
Owner

Could you give at least the config example?

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

No branches or pull requests

2 participants