easy_install python extension allows to install python eggs from console like:
easy_install py2app
But is it possible to access easy_install fu
The answer about invoking setuptools.main()
is correct. However, if setuptools creates a .egg, the script will be unable to import the module after installing it. Eggs are added automatically to sys.path at python start time.
One solution is to use require() to add the new egg to the path:
from setuptools.command import easy_install
import pkg_resources
easy_install.main( ['mymodule'] )
pkg_resources.require('mymodule')