Skip to content

Conversation

@zshipko
Copy link

@zshipko zshipko commented Dec 31, 2024

No description provided.

@zshipko zshipko requested review from G4Vi and nilslice December 31, 2024 19:20
@zshipko zshipko requested a review from bhelx as a code owner December 31, 2024 19:20
Copy link
Contributor

@G4Vi G4Vi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good idea to document this!

And then point `extism-py` to the dependencies

```bash
$ PYTHONPATH=./deps/lib/python3.12/site-packages extism-py -o a.wasm plugin.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a generally easy way to get ./deps/lib/python3.12/site-packages from some CLI command we can recommend the user calls here, or is this just "cd around the locals ./deps directory for where your site-packages is?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, I think this works:

 PYTHONPATH=$(python3 -c "import sys; print(sys.path[-1])") extism-py -o a.wasm plugin.py

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! thank you

@zshipko zshipko merged commit dbb276f into main Dec 31, 2024
4 checks passed
@zshipko zshipko deleted the docs-pythonpath branch December 31, 2024 19:56
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.

4 participants