diff options
author | Philip Thiem <ptthiem@gmail.com> | 2013-09-28 12:33:19 -0500 |
---|---|---|
committer | Philip Thiem <ptthiem@gmail.com> | 2013-09-28 12:33:19 -0500 |
commit | 78f01306a08285e9f2abe6ad749f6ce884e12555 (patch) | |
tree | c4769869539d5ae9101a7e8e76a46e9e292b9b97 /setuptools/command/sdist.py | |
parent | 30bb58f069cf1624f35cfbdb725e8e443ff64330 (diff) | |
parent | 49ce80613b7fcffd1882f7fb082e5bcc30e976f0 (diff) | |
download | external_python_setuptools-78f01306a08285e9f2abe6ad749f6ce884e12555.tar.gz external_python_setuptools-78f01306a08285e9f2abe6ad749f6ce884e12555.tar.bz2 external_python_setuptools-78f01306a08285e9f2abe6ad749f6ce884e12555.zip |
Merge with default
--HG--
extra : rebase_source : d9c70d5bebd4290f568c828c5bc3a9b93a817ff2
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-x | setuptools/command/sdist.py | 39 |
1 files changed, 12 insertions, 27 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index e1112ff9..6249e75c 100755 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -1,9 +1,12 @@ +import os +import re +import sys +from glob import glob + +import pkg_resources from distutils.command.sdist import sdist as _sdist from distutils.util import convert_path from distutils import log -from glob import glob -import os, re, sys, pkg_resources -from glob import glob from setuptools import svn_utils READMES = ('README', 'README.rst', 'README.txt') @@ -37,7 +40,6 @@ class re_finder(object): #was an re_finder for calling unescape path = postproc(path) yield svn_utils.joinpath(dirname,path) - def __call__(self, dirname=''): path = svn_utils.joinpath(dirname, self.path) @@ -64,16 +66,6 @@ finders = [ - - - - - - - - - - class sdist(_sdist): """Smart sdist that finds anything supported by revision control""" @@ -128,11 +120,12 @@ class sdist(_sdist): # Beginning with Python 2.7.2, 3.1.4, and 3.2.1, this leaky file handle # has been fixed, so only override the method if we're using an earlier # Python. - if ( - sys.version_info < (2,7,2) - or (3,0) <= sys.version_info < (3,1,4) - or (3,2) <= sys.version_info < (3,2,1) - ): + has_leaky_handle = ( + sys.version_info < (2,7,2) + or (3,0) <= sys.version_info < (3,1,4) + or (3,2) <= sys.version_info < (3,2,1) + ) + if has_leaky_handle: read_template = __read_template_hack def add_defaults(self): @@ -197,7 +190,6 @@ class sdist(_sdist): "standard file not found: should have one of " +', '.join(READMES) ) - def make_release_tree(self, base_dir, files): _sdist.make_release_tree(self, base_dir, files) @@ -244,10 +236,3 @@ class sdist(_sdist): continue self.filelist.append(line) manifest.close() - - - - - - -# |