Skip to content

Add static lib build + basic bindings #1

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

JRMurr
Copy link

@JRMurr JRMurr commented Aug 31, 2024

I've updated the build to along with the executable python, also emit python as a static lib. The build changes to make that work are mostly straightforward.

In the process of using the static lib I added some minimal zig bindings to python + an example. If this is out of scope for this repo I can move those to a separate repo. I based them slightly on https://github.com/Rexicon226/zig-cpython

To make loading initializing the embed python lib a little easier I also made the Lib directory an installable so the the embed runtime can find its install path and load it slightly easier. (I can also remove this if its out of scope)

Still learning some of the zig build system patterns so open to change anything

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

Successfully merging this pull request may close these issues.

1 participant