remove “-src” from the source tarball name so it matches what setuptools and pip expect it to be.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-12-31 05:23:21 +00:00
parent bc00dd154d
commit 07ebbbd6b4
2 changed files with 12 additions and 4 deletions

View File

@@ -1414,7 +1414,7 @@ def cmd_sdist(options, args):
# build the tarball
msg('Archiving Phoenix source...')
rootname = "%s-%s-src" % (baseName, cfg.VERSION)
rootname = "%s-%s" % (baseName, cfg.VERSION)
tarfilename = "dist/%s.tar.gz" % rootname
if os.path.exists(tarfilename):
os.remove(tarfilename)

View File

@@ -59,12 +59,13 @@ CLASSIFIERS = """\
Development Status :: 6 - Mature
Environment :: MacOS X :: Cocoa
Environment :: Win32 (MS Windows)
Environment :: Win64 (MS Windows)
Environment :: X11 Applications :: GTK
Intended Audience :: Developers
License :: OSI Approved
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows :: Windows 2000/XP/Vista/7/8
Operating System :: Microsoft :: Windows :: Windows XP
Operating System :: Microsoft :: Windows :: Windows Vista
Operating System :: Microsoft :: Windows :: Windows 7
Operating System :: POSIX
Programming Language :: Python
Topic :: Software Development :: User Interfaces
@@ -186,8 +187,15 @@ class wx_sdist(orig_sdist):
cmd = [sys.executable, '-u', 'build.py', 'sdist']
cmd = ' '.join(cmd)
runcmd(cmd)
# Put the filename in dist_files in case the upload command is used.
# On the other hand, PyPI's upload size limit is waaaaaaaaay too
# small so it probably doesn't matter too much...
sdist_file = opj(self.dist_dir, self.distribution.get_fullname()+'.tar.gz')
self.distribution.dist_files.append(('sdist', '', sdist_file))
# Map these new classes to the appropriate distutils command names.
CMDCLASS = {