mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Remove redundant __main__ blocks from packaging modules.
The one interface we commit to maintain is the run module (a.k.a. the pysetup script).
This commit is contained in:
parent
fad46e19b4
commit
ca9460324a
3 changed files with 1 additions and 17 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue