Embedding python with requirements.txt dependences in rust application

123 views
Skip to first unread message

Nyah Check

unread,
Jun 1, 2022, 5:32:26 PM6/1/22
to pyoxidizer-users
Hi,

I followed comments on this thread and have gone through the documentation. How do I install external python dependencies in pyoxidizer environment so as to successfully run a python script in rust. Maybe link to these packages already installed on the host machine `..site-packages` folder?

I've tried adding local site-packages in the pyo3 build config-file.txt and it does seem to unlink the embedded python libraries.

Something like this: `extra_build_script_line=cargo:rustc-link-search=native=~/.local/lib/python3.8/site-packages
`

It doesn't seem to work. Any ideas I'll be open or maybe I'm missing something

Cheers!
Reply all
Reply to author
Forward
0 new messages