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

Choose different wheel files for different platforms / Wildcards for file dependencies #1028

Closed
2 tasks done
huynh91 opened this issue Apr 10, 2019 · 5 comments
Closed
2 tasks done

Comments

@huynh91
Copy link

huynh91 commented Apr 10, 2019

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Question

Hi,
I have a library packaged in wheel files:

  • For Linux: mylib-0.1.0-cp36-cp36m-linux_x86_64.whl
  • For Windows: mylib-0.1.0-cp36-cp36m-win_amd64.whl

How should the pyproject.toml file look like? My attempt (not working):

mylib = {file = "../pkg/python/mylib-0.1.0-cp36-cp36m-linux_x86_64.whl", platform="linux"}
mylib = {file = "../pkg/python/mylib-0.1.0-cp36-cp36m-win_amd64.whl", platform="windows"}

I think this can be solved by allowing wildcards in file name:

mylib = {file = "../pkg/python/mylib-0.1.*.whl"}

Is this option (or something similar) available?
Thanks.

@drunkwcodes
Copy link

Maybe relates to #558.

So you have a wheel archive directory, and want to install a package available in the directory regardless of its target platform?

Do you mean like this? https://stackoverflow.com/questions/48183160/how-to-pip-install-whl-on-windows-using-a-wildcard

@huynh91
Copy link
Author

huynh91 commented Apr 26, 2019

Yes, that's exactly what I want. Currently I use pip for that.

@stale
Copy link

stale bot commented Nov 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 13, 2019
@stale
Copy link

stale bot commented Nov 20, 2019

Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.

@stale stale bot closed this as completed Nov 20, 2019
Copy link

github-actions bot commented Mar 3, 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 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants