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

How to package PY_LIMITED_API packages? #1172

Open
Ahajha opened this issue Nov 7, 2024 · 2 comments
Open

How to package PY_LIMITED_API packages? #1172

Ahajha opened this issue Nov 7, 2024 · 2 comments

Comments

@Ahajha
Copy link

Ahajha commented Nov 7, 2024

This might be a general conda or pypi question, but I'm interested in how to package compiled extensions which use PY_LIMITED_API.

In this case, I'd have a few options provided to me by rattler:

  1. Use variants - This produces a package per Python version, which is not ideal.
  2. Lie and say that it's noarch: python. This is a hack for certain, but I almost got this working. I don't think this is a good thing to do in production code though.
  3. ?

I've tried a number of things, but nothing seems to fit this use case. It seems like packaging such extensions is rather rare?

@wolfv
Copy link
Member

wolfv commented Nov 8, 2024

Hi @Ahajha - yes, this is an actual problem and you've identified it perfectly. A ABI3 package is somewhere between a noarch and a arch package :)

There is some active work going on in form of a CEP here: conda/ceps#86
If you have time / energy to engage in that conversation we can hopefully move it forward quickly.

@Ahajha
Copy link
Author

Ahajha commented Nov 8, 2024

Thanks! I'm a bit new to the Python packaging scene, but if I can contribute to the conversation I will! For now, my contribution will be some extra emoji :)

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