-
Notifications
You must be signed in to change notification settings - Fork 444
Using conda-convert to convert from/to noarch to/from specific platform #2611
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
Comments
I think this would be an easy change. Just need to change the index.json entries from noarch to the target arch. |
Although I'm not sure how we would want to deal with the files in |
What about |
I don't think there's anything we can do about them. Just let them be created at import time. |
.pyc files are only specific to a given python version - not platform. It should be possible to generate them at conversion time, but we'd require a particular python version to be given (or use the default, which is the python version present in the root env.) |
That seems like a totally reasonable constraint to me. Do we need to do anything special for entry points? |
Maybe you'd be interested in this discussion, @ericdill. ;) |
Thanks for the ping @jakirkham . I recently switched teams at work and so have not been paying enough attention to conda-forge, conda, conda-build and constructor as I should have been. I'll likely just be lurking with little input 😁. FWIW I really like the idea of |
No worries. These things happen. Yeah |
Where would you advise someone to look if they were to take this on, @msarahan? |
The best approach is probably to do something like creating an env with python plus any deps, then recording that as the set of existing files, then conda-installing the noarch package into that env. That allows you to ignore any implementation details of how noarch is implemented. You may need some cleanup for stuff you don't want, for example the search through the codebase for usage of |
Could you please revisit this issue? I too would like to convert For some context, what I'm trying to do is package pypdfium2 for conda upon request of the doctr project. We're using external binaries and ABI-level bindings, so we want to craft platform specific packages that are independent of python version. Thanks! |
Putting |
@mandeep @msarahan @kenodegard @ericdill @p3trus, or anyone else interested: |
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
Would be nice to be able to convert
noarch
packages to a specific platform (e.g.linux-64
) and vice versa usingconda-convert
. Of particular interest isnoarch: python
packages. Though ideally this could be used for allnoarch
packages.The text was updated successfully, but these errors were encountered: