Skip to content

Instantly share code, notes, and snippets.

@cjmeyer
Created December 12, 2012 19:37
Show Gist options
  • Save cjmeyer/4270868 to your computer and use it in GitHub Desktop.
Save cjmeyer/4270868 to your computer and use it in GitHub Desktop.
Python: Easy_install from script.
from setuptools.command import easy_install
def install_with_easyinstall(package):
easy_install.main(["-U", package]).
install_with_easyinstall('py2app')
import pkg_resources
easy_install.main( ['mymodule'] )
pkg_resources.require('mymodule')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment