aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/sdist.py
diff options
context:
space:
mode:
authorPhilip Thiem <ptthiem@gmail.com>2013-07-04 13:10:35 -0500
committerPhilip Thiem <ptthiem@gmail.com>2013-07-04 13:10:35 -0500
commitadb810246108bfe67f4ac92ab0f644d250cce515 (patch)
treec1b3425a347d7e718db5c946e13932df4049b720 /setuptools/command/sdist.py
parentf553edb0df7c17b81457820e9333adc56b04d8b9 (diff)
downloadexternal_python_setuptools-adb810246108bfe67f4ac92ab0f644d250cce515.tar.gz
external_python_setuptools-adb810246108bfe67f4ac92ab0f644d250cce515.tar.bz2
external_python_setuptools-adb810246108bfe67f4ac92ab0f644d250cce515.zip
consolidated externals and enteries because enteries need to file to
interate over and both get called by the same callback. pep8 on svn_utils --HG-- extra : rebase_source : fa65ebfc167041b5c2e1b2bd901e9354cfaea57e
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-xsetuptools/command/sdist.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index 081d3c98..5cc2139b 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -60,23 +60,21 @@ def _default_revctrl(dirname=''):
for item in _default_revctrl(path):
yield item
-def externals_finder(dirname, filename):
- """Find any 'svn:externals' directories"""
- for name in svn_utils.parse_externals(dirname):
- yield joinpath(dirname, name)
-
-def entries_finder(dirname, filename):
+def entries_externals_finder(dirname, filename):
for record in svn_utils.parse_dir_entries(dirname):
yield joinpath(dirname, record)
+ for name in svn_utils.parse_externals(dirname):
+ yield joinpath(dirname, name)
+
finders = [
(convert_path('CVS/Entries'),
re_finder(re.compile(r"^\w?/([^/]+)/", re.M))),
- (convert_path('.svn/entries'), entries_finder),
- (convert_path('.svn/dir-props'), externals_finder),
- (convert_path('.svn/dir-prop-base'), externals_finder), # svn 1.4
+ #combined externals due to common interface
+ #combined externals and enteries due to lack of dir_props in 1.7
+ (convert_path('.svn/entries'), entries_externals_finder),
]