PyEmpaq 0.4 released

I’m happy to announce the release of PyEmpaq 0.4.

PyEmpaq is a simple but powerful Python packer to run any project with any virtualenv dependencies anywhwere.

With PyEmpaq you can convert any Python project into a single .pyz file with all the project’s content packed inside.

That single file is everything that needs to be distributed. When the final user executes it, the original project will be expanded, its dependencies installed in a virtualenv, and then executed. Note that no special permissions or privileges are required, as everything happens in the user environment.

Both the packaging and the execution are fully multiplatorm. This means that you can pack a project in Linux, Windows, MacOS or whatever, and it will run ok in Linux, Windows, MacOS or whatever. The only requirement is Python to be already installed.

What’s new in this version?

  • Remove the installation if ephemeral behaviour is indicated (related issue)

  • Allow to change the location where the files get unpacked (related issue)

  • Dump a file with unpacking related metadata in the project’s directory (related issue)

  • Refactored the project’s install directory name to include the Python version and more specifics (related issue)

  • Alert at pack time if any indicated requirement file is excluded from the included files.

  • Log (and transmit when ending the unpacker itself) the return code of the executed project (related issue)

  • Migrated to the platformdirs library to detect the user’s data directory. (related issue)

For more details please check the documentation (which includes demos and examples). The project exists in Github.


. Facundo