Download and install packages from executables

28 views
Skip to first unread message

nisha narkhede

unread,
Sep 8, 2020, 2:21:36 PM9/8/20
to pyoxidizer-users
Dear Team,

I would like to create a standalone executable which once executed it should download and install packages in specified directory. How can we do it with pyoxidizer?

Thanks,
Nisha Narkhede



Gregory Szorc

unread,
Sep 16, 2020, 9:56:49 PM9/16/20
to nisha narkhede, pyoxidizer-users
There are a few approaches to this.

One is to write Python code to perform these actions and then produce an executable with PyOxidizer that runs that Python code. Python's standard library has packages (like urllib) that can retrieve files via HTTP.

The other is to write Rust code that runs in addition to the Python interpreter in the built executable. This is documented at https://pyoxidizer.readthedocs.io/en/latest/rust.html and https://pyoxidizer.readthedocs.io/en/latest/rust_porting.html#getting-started.

Does this information help?

--
You received this message because you are subscribed to the Google Groups "pyoxidizer-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyoxidizer-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyoxidizer-users/7d4ce2af-f2af-46a7-b5c1-8df13407915bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages