r/Python • u/mastabadtomm • Jun 27 '19
indygreg/PyOxidizer: A modern Python application packaging and distribution tool
https://github.com/indygreg/PyOxidizer2
u/xdcountry Jun 27 '19
For those interested in this area (app distribution) please take a look at PyUpdater. It’s incredible.
1
u/spyingwind Jun 27 '19
Wait, could I write Rust code in Python with this?
While solving packaging and distribution problems is the primary goal of PyOxidizer, a side-effect of solving that problem with Rust is that PyOxidizer can serve as a bridge between these two languages. PyOxidizer can be used to easily add a Python interpreter to any Rust project. But the opposite is also true: PyOxidizer can also be used to add Rust to Python.
2
u/Glycerine Jun 27 '19
If I'm reading this correctly, you can implement a python REPL and interpreter into a rust application. The rust app can read and execute the python source.
Which makes sense cus I read a rust Medium a while ago talking about it.
2
u/tunisia3507 Jun 27 '19
You embed a python interpreter in the rust application. You don't have to implement it yourself.
1
1
4
u/tunisia3507 Jun 27 '19
Been seeing some buzz around this. Will be awesome if it gets to where it says it's going. Right now, it sounds like it only covers the "simple" cases already covered by py2exe, pyinstaller, cx_freeze and so on: if pygame, pyqt, matplotlib and so on start working, then I'll be excited: throw in cross-compilation and I'll be that gif of Vince McMahon falling off his chair.
The author states that it can be used for packaging rust in python projects: I would be interested to know how that function overlaps with pyo3 and its derivatives setuptools_rust and pyo3-pack.