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

Can I use poetry for a hardware/platform specific build? #5315

Closed
dbogdoll opened this issue Mar 15, 2022 · 3 comments
Closed

Can I use poetry for a hardware/platform specific build? #5315

dbogdoll opened this issue Mar 15, 2022 · 3 comments
Labels
status/duplicate Duplicate issues

Comments

@dbogdoll
Copy link

I'm writing a wrapper for a windows DLL and would like to publish the wheel with the DLL.
The DLL is only available for Windows and such the resulting wheel is not usable for any other platform.
The wheel build and works, but the wheel naming does not indicate that it is only usable for windows:

example_name-0.1.0-py3-none-any.whl

Of course I could just rename the wheel, but the meta data within the wheel also refers that this library is
Root-Is-Purelib: true
which is IMHO wrong.

Is there any way to tell poetry that this wheel is platform specific and works only on Windows?

@ianscottknight
Copy link

I also want to know if there is a way to implement this.

@neersighted
Copy link
Member

This is actually a duplicate of #2740, more-or-less. Poetry will tag your wheel to the platform when you use a build script (which can perform an extension build, or copy around files/trigger another build system as needed). If you want explicit control over tags without a build script, that's something more like #2051, but as the project format is declarative, build = is a more direct way to get what you want.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2022
@neersighted neersighted added the status/duplicate Duplicate issues label Nov 3, 2022
Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants