mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
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:
2
build.py
2
build.py
@@ -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)
|
||||
|
||||
14
setup.py
14
setup.py
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user