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

Expand section on packaging compiled extensions :) #422

Open
sneakers-the-rat opened this issue Oct 30, 2024 · 3 comments
Open

Expand section on packaging compiled extensions :) #422

sneakers-the-rat opened this issue Oct 30, 2024 · 3 comments
Labels
enhancement-feature something new to add to our guide

Comments

@sneakers-the-rat
Copy link
Contributor

Creating an issue to check interest/feasibility/etc. in expanding the section on packaging with compiled extensions!

There are a bunch of moving pieces here, and I don't think we can quite arrive at a single "best practices" because of the amount of variability inherent in the problem, but I think we can get a nice starting point and compile resources for further reading.

Sketching a few of the pieces that would need to be covered:

  • CD: building for multiple architectures/versions, releasing from CI/CD
  • Config: setting up pyproject.toml and accessory scripts for building
  • Tooling: how a sample of package managers handle extension modules
  • Frameworks: e.g. Cython, pyo3, etc.
  • Integration with other build systems like cmake, meson, etc.
  • Typing: type stub files and ux when exposing compiled modules
  • Docs: documenting build process, the code itself, and making contribution accessible
@Midnighter
Copy link
Contributor

Definitely an interesting topic. I have a candidate package that can use good guidance, too.

@sneakers-the-rat
Copy link
Contributor Author

My nefarious plan to slowly convince someone to help me write "rust for python ppl" with pyo3 as a gateway.....

@Midnighter
Copy link
Contributor

I assume you would want to switch to pdm for managing a package with extensions?

@willingc willingc added the enhancement-feature something new to add to our guide label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement-feature something new to add to our guide
Projects
None yet
Development

No branches or pull requests

3 participants