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

ci: publish only sdist on PyPi #339

Merged
merged 1 commit into from
Apr 12, 2022
Merged

Conversation

igaw
Copy link
Collaborator

@igaw igaw commented Apr 12, 2022

Pre building the binaries with wheels is difficult, as we would also
need to ship the libnvme.so with the Python binding.

This is a well known limitation of this kind of setup (binding to a
shared library). Most project fallback to just ship the sdist.

Though there is a drawback as the C library is missing and the user
has to provide the library himself, with all problems which come along
with setup. But it seems common practice with other Python bindings,
so we don't want to be hostile to the ones which know what they are
doing.

Normal users should just use the distribution packages anyway.

Signed-off-by: Daniel Wagner dwagner@suse.de

Fixes: #271

@igaw
Copy link
Collaborator Author

igaw commented Apr 12, 2022

FWIW, when we figured out how we can get the versioning a bit more useful (looking into this as next) we can try to get TestPyPi hook more useful

Copy link
Contributor

@glimchb glimchb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

pyproject.toml Outdated Show resolved Hide resolved
Pre building the binaries with wheels is difficult, as we would also
need to ship the libnvme.so with the Python binding.

This is a well known limitation of this kind of setup (binding to a
shared library). Most project fallback to just ship the sdist.

Though there is a drawback as the C library is missing and the user
has to provide the library himself, with all problems which come along
with setup. But it seems common practice with other Python bindings,
so we don't want to be hostile to the ones which know what they are
doing.

Normal users should just use the distribution packages anyway.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
@igaw igaw merged commit 0f85f87 into linux-nvme:master Apr 12, 2022
@igaw igaw deleted the pypi-sdist-only branch April 12, 2022 18:01
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

Successfully merging this pull request may close these issues.

compare between mesonpy and mesonpep517 python build backends
2 participants