Created
December 12, 2012 19:37
-
-
Save cjmeyer/4270868 to your computer and use it in GitHub Desktop.
Python: Easy_install from script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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