[New-bugs-announce] [issue17144] Distutils: "sdist register upload" ignores -r argument

Danilo Bargen report at bugs.python.org
Wed Feb 6 17:10:32 CET 2013


New submission from Danilo Bargen:

Where I work, we use a custom pypi server to upload our internal packages.

With a package that has a setup.py created using setuptools, I can simply issue:

$ python setup.py sdist register upload -r local

...and it will get registered and uploaded to our local server.

If setup.py is using distutils though, this does not work and the -r argument gets ignored. The command above would register and upload the package to pypi.python.org (which can in some situations be a security problem).

As a workaround, this works:

$ python setup.py register -r local
$ python setup.py sdist upload -r local

Tested under Python 2.7...

----------
assignee: eric.araujo
components: Distutils
messages: 181540
nosy: eric.araujo, gwrtheyrn, tarek
priority: normal
severity: normal
status: open
title: Distutils: "sdist register upload" ignores -r argument
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17144>
_______________________________________


More information about the New-bugs-announce mailing list