Watch 1 Star 0

码云极速下载 / pyship

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库:
Nothing here. spread retract

Clone or download
Notice: Creating folder will generate an empty file .keep, because not support in Git


pyship creates a python 2.7 binary that can be bundled with python scripts. This gives python scripts a native application feel. Other attempts at creating a similar effect include programs like py2exe and cx_Freeze.

Currently only OSX is supported.


  1. Install ActiveState Tcl/Tk 8.5
  2. Install Xcode SDK
  3. sudo ln -s /usr/bin/clang /usr/bin/cc
  4. sudo ln -s /usr/local/bin/hg /usr/bin/hg
  5. sudo ln -s /Library/Frameworks/Tk.framework/ $(xcrun --show-sdk-path)/Library/Frameworks/
  6. sudo ln -s /Library/Frameworks/Tcl.framework/ $(xcrun --show-sdk-path)/Library/Frameworks/

creating a binary

  1. git clone
  2. cd pyship
  3. ./ 10.10

invoking the python shell

$ ./build/pyship/python2.7/usr/local/bin/python
>>> import _ssl # ssl works!
>>> print "Hello World"
Hello World
>>> exit()

setting up a virtualenv

$ ./build/pyship/python2.7/usr/local/bin/python ./build/pyship/virtualenv/ abc
$ ./abc/bin/pip install requests
$ ./abc/bin/python
>>> import requests
>>> r = requests.get('')
>>> r.text
u'<!doctype html><html itemscope="" itemtype="" lang="en"><head><meta
content="Search the world\'s information, including webpages, images, videos and more. Google
has many special features to help you find exactly what you\'re looking for." name="description">...
>>> exit()


$ find build/pyship/python2.7/ | xargs otool -L 2>/dev/null | \
  grep -Ev "(is not an object file|Invalid argument|build/pyship)" | \
  awk '{$1=$1};1' | awk '{print $1}' | sort | uniq

Comments ( 0 )

You need to Sign in for post a comment

Help Search