aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-07-07 02:03:25 +0000
committerPJ Eby <distutils-sig@python.org>2005-07-07 02:03:25 +0000
commitd3add44007ad72fc795297dd208d9a37ac4b54a3 (patch)
tree5e431089b0458c8124904e4c7d94a5f551668536 /setuptools/dist.py
parent8e7eabf110643907fd1f1979d0674cf615268124 (diff)
downloadexternal_python_setuptools-d3add44007ad72fc795297dd208d9a37ac4b54a3.tar.gz
external_python_setuptools-d3add44007ad72fc795297dd208d9a37ac4b54a3.tar.bz2
external_python_setuptools-d3add44007ad72fc795297dd208d9a37ac4b54a3.zip
Beefed up the "sdist" command so that if you don't have a MANIFEST.in, it
will include all files under revision control (CVS or Subversion) in the current directory, and it will regenerate the list every time you create a source distribution, not just when you tell it to. This should make the default "do what you mean" more often than the distutils' default behavior did, while still retaining the old behavior in the presence of MANIFEST.in. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041087
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 590ea165..fc0f3eba 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -5,6 +5,7 @@ from distutils.core import Extension
from setuptools.depends import Require
from setuptools.command.build_ext import build_ext
from setuptools.command.install import install
+from setuptools.command.sdist import sdist
from setuptools.command.install_lib import install_lib
from distutils.errors import DistutilsOptionError, DistutilsPlatformError
from distutils.errors import DistutilsSetupError
@@ -79,7 +80,6 @@ class Distribution(_Distribution):
distribution for the included and excluded features.
"""
-
def __init__ (self, attrs=None):
have_package_data = hasattr(self, "package_data")
if not have_package_data:
@@ -98,7 +98,7 @@ class Distribution(_Distribution):
self.cmdclass.setdefault('build_ext',build_ext)
self.cmdclass.setdefault('install',install)
self.cmdclass.setdefault('install_lib',install_lib)
-
+ self.cmdclass.setdefault('sdist',sdist)