diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-04-18 17:32:12 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-04-18 17:32:12 (GMT) |
commit | 584b0e0c3d27dc6b576366368bf7ca2f60e69e7c (patch) | |
tree | f2e33dbae88a59b367819920a5c4a2260f080788 /Lib/setuptools/command/build_py.py | |
parent | 17a35f906c29e71510d749283b381d95a5de0316 (diff) | |
download | cpython-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.zip cpython-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.tar.gz cpython-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.tar.bz2 |
Whilespace normalization (reindint.py).
Diffstat (limited to 'Lib/setuptools/command/build_py.py')
-rw-r--r-- | Lib/setuptools/command/build_py.py | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/Lib/setuptools/command/build_py.py b/Lib/setuptools/command/build_py.py index d820710..77a9b23 100644 --- a/Lib/setuptools/command/build_py.py +++ b/Lib/setuptools/command/build_py.py @@ -93,7 +93,7 @@ class build_py(_build_py): ei_cmd = self.get_finalized_command('egg_info') for path in ei_cmd.filelist.files: if path.endswith('.py'): - continue + continue d,f = os.path.split(assert_relative(path)) prev = None while d and d!=prev and d not in src_dirs: @@ -142,7 +142,7 @@ class build_py(_build_py): f = open(init_py,'rU') if 'declare_namespace' not in f.read(): - from distutils.errors import DistutilsError + from distutils.errors import DistutilsError raise DistutilsError( "Namespace package problem: %s is a namespace package, but its\n" "__init__.py does not call declare_namespace()! Please fix it.\n" @@ -167,7 +167,7 @@ class build_py(_build_py): globs = (self.exclude_package_data.get('', []) + self.exclude_package_data.get(package, [])) bad = [] - for pattern in globs: + for pattern in globs: bad.extend( fnmatch.filter( files, os.path.join(src_dir, convert_path(pattern)) @@ -190,16 +190,3 @@ setup() arguments must *always* be /-separated paths relative to the setup.py directory, *never* absolute paths. """ % path ) - - - - - - - - - - - - - |