summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorPaul Ganssle <pganssle@users.noreply.github.com>2018-12-17 07:59:02 (GMT)
committerPetr Viktorin <encukou@gmail.com>2018-12-17 07:59:02 (GMT)
commit4e80f5cbeaee87a26e49bc9623c92a10e28dbbd9 (patch)
tree003fa84cce4c9acfae6ff9bd256c470f24a0dee2 /Lib/distutils
parent2dfe3511fe310c559d5571c52dcac381f33fd3a6 (diff)
downloadcpython-4e80f5cbeaee87a26e49bc9623c92a10e28dbbd9.zip
cpython-4e80f5cbeaee87a26e49bc9623c92a10e28dbbd9.tar.gz
cpython-4e80f5cbeaee87a26e49bc9623c92a10e28dbbd9.tar.bz2
bpo-35186: Remove "built with" comment in setup.py upload (GH-10414)
platform.dist() is deprecated and slated for removal in Python 3.8. The upload command itself should also not be used to upload to PyPI, but while it continues to exist it should not use deprecated functions.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/upload.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py
index 32dda35..613ea71 100644
--- a/Lib/distutils/command/upload.py
+++ b/Lib/distutils/command/upload.py
@@ -121,14 +121,8 @@ class upload(PyPIRCCommand):
'requires': meta.get_requires(),
'obsoletes': meta.get_obsoletes(),
}
- comment = ''
- if command == 'bdist_rpm':
- dist, version, id = platform.dist()
- if dist:
- comment = 'built for %s %s' % (dist, version)
- elif command == 'bdist_dumb':
- comment = 'built for %s' % platform.platform(terse=1)
- data['comment'] = comment
+
+ data['comment'] = ''
if self.sign:
data['gpg_signature'] = (os.path.basename(filename) + ".asc",