aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/sdist.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-07-07 16:28:43 +0000
committerPJ Eby <distutils-sig@python.org>2005-07-07 16:28:43 +0000
commitc1112aa5fb7da9996e5a0ebe8689e5cf9ca72cee (patch)
tree06d3d26a04aae3e25b0edc503b24f606cb76baef /setuptools/command/sdist.py
parent61d2fd1d71e8940531c35327e6d91c41ddcd9dbd (diff)
downloadexternal_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-xsetuptools/command/sdist.py41
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):
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+