diff options
author | Éric Araujo <merwok@netwok.org> | 2011-11-06 10:38:58 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-11-06 10:38:58 (GMT) |
commit | ca9460324adb9e744abf95bd57ce1bfca248313f (patch) | |
tree | 43d18e6fb7593c59ff333e4fa1e6e1956049da64 /Lib/packaging/install.py | |
parent | fad46e19b4e6b2173b84e6216465e6fe5824ba2a (diff) | |
download | cpython-ca9460324adb9e744abf95bd57ce1bfca248313f.zip cpython-ca9460324adb9e744abf95bd57ce1bfca248313f.tar.gz cpython-ca9460324adb9e744abf95bd57ce1bfca248313f.tar.bz2 |
Remove redundant __main__ blocks from packaging modules.
The one interface we commit to maintain is the run module
(a.k.a. the pysetup script).
Diffstat (limited to 'Lib/packaging/install.py')
-rw-r--r-- | Lib/packaging/install.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/packaging/install.py b/Lib/packaging/install.py index b6816e5..776ba40 100644 --- a/Lib/packaging/install.py +++ b/Lib/packaging/install.py @@ -527,12 +527,3 @@ def install(project): logger.info('%r conflicts with %s', project, ','.join(projects)) return True - - -def _main(**attrs): - if 'script_args' not in attrs: - attrs['requirements'] = sys.argv[1] - get_infos(**attrs) - -if __name__ == '__main__': - _main() |