diff options
author | PJ Eby <distutils-sig@python.org> | 2005-07-07 16:28:43 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-07-07 16:28:43 +0000 |
commit | c1112aa5fb7da9996e5a0ebe8689e5cf9ca72cee (patch) | |
tree | 06d3d26a04aae3e25b0edc503b24f606cb76baef /setuptools/command/sdist.py | |
parent | 61d2fd1d71e8940531c35327e6d91c41ddcd9dbd (diff) | |
download | external_python_setuptools-c1112aa5fb7da9996e5a0ebe8689e5cf9ca72cee.tar.gz external_python_setuptools-c1112aa5fb7da9996e5a0ebe8689e5cf9ca72cee.tar.bz2 external_python_setuptools-c1112aa5fb7da9996e5a0ebe8689e5cf9ca72cee.zip |
Add upload support to setuptools, and make default downloads of setuptools
come from PyPI/python.org rather than from telecommunity.com. Bump to
version 0.5a7.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041090
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-x | setuptools/command/sdist.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index b39df36f..3891526d 100755 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -63,8 +63,34 @@ def walk_revctrl(dirname='', memo=None): for item in walk_revctrl(path, memo): yield item + + + + + + + + + + + + + + + + + class sdist(_sdist): """Smart sdist that finds anything supported by revision control""" + + def run(self): + _sdist.run(self) + dist_files = getattr(self.distribution,'dist_files',[]) + for file in self.archive_files: + data = ('sdist', '', file) + if data not in dist_files: + dist_files.append(data) + def finalize_options(self): _sdist.finalize_options(self) if not os.path.isfile(self.template): @@ -80,3 +106,18 @@ class sdist(_sdist): + + + + + + + + + + + + + + + |