Skip to content

Instantly share code, notes, and snippets.

@dyashkir
Last active February 7, 2017 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dyashkir/1c9fb8f6102cf2302f16223685b138bd to your computer and use it in GitHub Desktop.
Save dyashkir/1c9fb8f6102cf2302f16223685b138bd to your computer and use it in GitHub Desktop.
Python executable
Correct version of pip
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python3.5 get-pip.py
OSX executable
pip install -U py2app
py2applet --make-setup <application name>.py
python3 setup.py py2app
./dist/<application name>.app/Contents/MacOS/<application name>
Windows
pip3.5 install -U py2exe
setup_win.py:
from distutils.core import setup
import py2exe
setup(console=['test.py'])
python3.5 setup_win.py py2exe
Bundling the C runtime DLL
see http://www.py2exe.org/index.cgi/Tutorial#Step521
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment