pyinstaller - Build standalone binaries from Python code

in #python7 years ago (edited)

I just stumbled on this while wondering whether there was a thing to compile full binary packages from Python source. Et voila:

http://www.pyinstaller.org

Well, I don't know if it runs code faster but it makes running it and distributing it easier.

From the webpage:

Features

  • Packaging of Python programs into standard executables, that work on computers without Python installed.
  • Multiplatform: works under
    • Windows (32-bit and 64-bit),
    • Linux (32-bit and 64-bit),
    • Mac OS X (32-bit and 64-bit),
    • contributed suppport for FreeBSD, Solaris and AIX.
  • Multiversion: supports Python 2.7 and Python 3.3, 3.4 and 3.5.
  • Flexible packaging mode:
    • Single directory: build a directory containing an executable plus all the external binary modules (.dll, .pyd, .so) used by the program.
    • Single file: build a single executable file, totally self-contained, which runs without any external dependency.
    • Custom: you can automate PyInstaller to do whatever packaging mode you want through a simple script file in Python.
  • Explicit intelligent support for many 3rd-packages (for hidden imports, external data files, etc.), to make them work with PyInstaller out-of-the-box (see Supported Packages).
  • Full egg support: required .egg files are automatically inspected for dependencies and bundled, and all the egg-specific features are supported at runtime as well (entry points, etc.).
  • Automatic support for binary libraries used through ctypes (see the feature page for details).
  • Support for automatic binary packing through the well-known UPX compressor.
  • Optional console mode (see standard output and standard error at runtime).

Windows-specific features

  • Support for code-signing executables.
  • Full automatic support for CRTs: no need to manually distribute MSVCR*.DLL, redist installers, manifests, or anything else; true one-file applications that work everywhere!
  • Selectable executable icon.
  • Fully configurable version resource section and manifests in executable.

Mac-specific features

  • Support for bundles

We can't stop here! This is Whale country!

Loki was born in Australia, now is wandering Amsterdam again after 9 months in Sofia, Bulgaria. IT generalist, physics theorist, futurist and cyber-agorist. Loki's life mission is to establish a secure, distributed layer atop the internet, and enable space migration, preferably while living in a beautiful mountain house somewhere with a good woman, and lots of farm animals and gardens, where he can also go hunting and camping.

I'm a thoughtocaster, a conundrummer in a band called Life Puzzler. I've flipped more lids than a monkey in a soup kitchen, of the mind. - Xavier, Renegade Angel

*

All images in the above post are either original from me, or taken from Google Image Search, filtered for the right of reuse and modification, and either hotlinked directly, or altered by me
Uploaded images hosted at postimg.org

Sort:  

Hello @l0k1,

It gives us pleasure to inform you that this post have been upvoted by Project Better.

The Mission of Project Better is to reward posts have many votes from Minnows but earn pennies.
Your payout is $0.011 before we vote on your post.

Learn more about the Project Better here! ,
Want to donate your voting power to support Project Better and earn curation rewards? Click Here!

We hope to see you continuing to post some great stuff on Steemit!

Good luck!

~BETTER~

I did not know about this till now. Thank you!

I learned of it back in 2013 but I'd forgotten. When I started looking at what was involved in my hypothetical steem email system built out of bitmessage and it's python, then piston for interacting with the blockchain, and bittorrent for enabling file sharing... every part can be built from a python app that already exists.

This post has been linked to from another place on Steem.

Learn more about and upvote to support linkback bot v0.5. Flag this comment if you don't want the bot to continue posting linkbacks for your posts.

Built by @ontofractal

Coin Marketplace

STEEM 0.30
TRX 0.11
JST 0.033
BTC 64271.38
ETH 3157.43
USDT 1.00
SBD 4.25