diff options
| author | PJ Eby <distutils-sig@python.org> | 2005-06-15 02:19:42 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2005-06-15 02:19:42 +0000 |
| commit | 5a9445cd57c60bb47451d8a88ec12a7a865013b7 (patch) | |
| tree | 75dab611dd00efff933bad3fb579dadd37ddd7ef /setuptools/__init__.py | |
| parent | 13c8739a6b43cb59ad0dfbd7751148d427af6170 (diff) | |
| download | python-setuptools-git-5a9445cd57c60bb47451d8a88ec12a7a865013b7.tar.gz | |
Add bootstrap installation support that "hitches a ride" on other packages
being installed via the normal distutils "setup.py install". Also, don't
repeatedly download the setuptools egg if it's already in the target
location.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041069
Diffstat (limited to 'setuptools/__init__.py')
| -rw-r--r-- | setuptools/__init__.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/setuptools/__init__.py b/setuptools/__init__.py index 77fdbbbe..1a6bebff 100644 --- a/setuptools/__init__.py +++ b/setuptools/__init__.py @@ -15,6 +15,7 @@ __all__ = [ 'find_packages' ] +bootstrap_install_from = None def find_packages(where='.'): """Return a list all Python packages found within directory 'where' @@ -38,7 +39,6 @@ def find_packages(where='.'): - def setup(**attrs): """Do package setup @@ -56,6 +56,12 @@ class Command(_Command): command_consumes_arguments = False + def __init__(self, dist, **kw): + # Add support for keyword arguments + _Command.__init__(self,dist) + for k,v in kw.items(): + setattr(self,k,v) + def reinitialize_command(self, command, reinit_subcommands=0, **kw): cmd = _Command.reinitialize_command(self, command, reinit_subcommands) for k,v in kw.items(): @@ -74,9 +80,3 @@ class Command(_Command): - - - - - - |
