home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from setuptools.extension import Extension, Library
- from setuptools.dist import Distribution, Feature, _get_unpatched
- import distutils.core as distutils
- import setuptools.command as setuptools
- from setuptools.depends import Require
- from distutils.core import Command as _Command
- from distutils.util import convert_path
- import os.path as os
- __version__ = '0.6c9'
- __all__ = [
- 'setup',
- 'Distribution',
- 'Feature',
- 'Command',
- 'Extension',
- 'Require',
- 'find_packages']
- bootstrap_install_from = None
-
- def find_packages(where = '.', exclude = ()):
- out = []
- stack = [
- (convert_path(where), '')]
- while stack:
- (where, prefix) = stack.pop(0)
- for name in os.listdir(where):
- fn = os.path.join(where, name)
- if '.' not in name and os.path.isdir(fn) and os.path.isfile(os.path.join(fn, '__init__.py')):
- out.append(prefix + name)
- stack.append((fn, prefix + name + '.'))
- continue
-
- for pat in list(exclude) + [
- 'ez_setup']:
- fnmatchcase = fnmatchcase
- import fnmatch
- out = _[1]
-
- return out
-
- setup = distutils.core.setup
- _Command = _get_unpatched(_Command)
-
- class Command(_Command):
- __doc__ = _Command.__doc__
- command_consumes_arguments = False
-
- def __init__(self, dist, **kw):
- _Command.__init__(self, dist)
- for k, v in kw.items():
- setattr(self, k, v)
-
-
-
- def reinitialize_command(self, command, reinit_subcommands = 0, **kw):
- cmd = _Command.reinitialize_command(self, command, reinit_subcommands)
- for k, v in kw.items():
- setattr(cmd, k, v)
-
- return cmd
-
-
- import distutils.core as distutils
- distutils.core.Command = Command
-
- def findall(dir = os.curdir):
- all_files = []
- for base, dirs, files in os.walk(dir):
- if base == os.curdir or base.startswith(os.curdir + os.sep):
- base = base[2:]
-
- all_files.extend(filter(os.path.isfile, files))
-
- return all_files
-
- import distutils.filelist as distutils
- distutils.filelist.findall = findall
-