Пример #1
0
 def __init__(self, dist, **kw):
     """
     Construct the command for dist, updating
     vars(self) with any keyword parameters.
     """
     _Command.__init__(self, dist)
     vars(self).update(kw)
Пример #2
0
 def __init__(self, dist, **kw):
     """
     Construct the command for dist, updating
     vars(self) with any keyword parameters.
     """
     _Command.__init__(self, dist)
     vars(self).update(kw)
Пример #3
0
    def __init__(self, *args, **kwargs):
        Command.__init__(self, *args, **kwargs)

        self.api_dir = os.path.join('doc', 'source', 'api')
        self.overwrite = 0
        self.pre_rm = 0
        self.modules_to_exclude = ''
Пример #4
0
    def __init__(self, *args, **kwargs):
        """Metadata dictionary is created, all the metadata attributes, that were 
        not found are set to default empty values. Checks of data types are performed.
        """
        Command.__init__(self, *args, **kwargs)

        self.metadata = {}

        for attr in [
                'setup_requires', 'tests_require', 'install_requires',
                'packages', 'py_modules', 'scripts'
        ]:
            self.metadata[attr] = to_list(getattr(self.distribution, attr, []))

        for attr in ['url', 'long_description', 'description', 'license']:
            self.metadata[attr] = to_str(
                getattr(self.distribution.metadata, attr, None))

        self.metadata['classifiers'] = to_list(
            getattr(self.distribution.metadata, 'classifiers', []))

        if isinstance(getattr(self.distribution, "entry_points", None), dict):
            self.metadata['entry_points'] = self.distribution.entry_points
        else:
            self.metadata['entry_points'] = None

        self.metadata['test_suite'] = getattr(self.distribution, "test_suite",
                                              None) is not None
Пример #5
0
 def __init__(self, *args, **kwargs):
     Command.__init__(self, *args, **kwargs)
     self.doc_dir = 'doc/source'
     self.build_dir = 'doc/build'
     self.clean = 0
     self.html = None
     self.dirhtml = None
     self.singlehtml = None
     self.pickle = None
     self.json = None
     self.htmlhelp = None
     self.epub = None
     self.latex = None
     self.latexpdf = None
     self.text = None
     self.man = None
     self.changes = None
     self.linkcheck = None
     self.doctest = None
Пример #6
0
 def __init__(self, *args, **kwargs):
     Command.__init__(self, *args, **kwargs)
     self.doc_dir = 'doc/source'
     self.build_dir = 'doc/build'
     self.clean = 0
     self.html = None
     self.dirhtml = None
     self.singlehtml = None
     self.pickle = None
     self.json = None
     self.htmlhelp = None
     self.epub = None
     self.latex = None
     self.latexpdf = None
     self.text = None
     self.man = None
     self.changes = None
     self.linkcheck = None
     self.doctest = None
Пример #7
0
    def __init__(self, *args, **kwargs):
        """Metadata dictionary is created, all the metadata attributes,
        that were not found are set to default empty values. Checks of data
        types are performed.
        """
        Command.__init__(self, *args, **kwargs)

        self.metadata = {}

        for attr in [
                'setup_requires', 'tests_require', 'install_requires',
                'packages', 'py_modules', 'scripts'
        ]:
            self.metadata[attr] = to_list(getattr(self.distribution, attr, []))

        try:
            for k, v in getattr(self.distribution, 'extras_require',
                                {}).items():
                if k in ['test, docs', 'doc', 'dev']:
                    attr = 'setup_requires'
                else:
                    attr = 'install_requires'
                self.metadata[attr] += to_list(v)
        except (AttributeError, ValueError):
            # extras require are skipped in case of wrong data format
            # can't log here, because this file is executed in a subprocess
            pass

        for attr in ['url', 'long_description', 'description', 'license']:
            self.metadata[attr] = to_str(
                getattr(self.distribution.metadata, attr, None))

        self.metadata['classifiers'] = to_list(
            getattr(self.distribution.metadata, 'classifiers', []))

        if isinstance(getattr(self.distribution, "entry_points", None), dict):
            self.metadata['entry_points'] = self.distribution.entry_points
        else:
            self.metadata['entry_points'] = None

        self.metadata['test_suite'] = getattr(self.distribution, "test_suite",
                                              None) is not None
Пример #8
0
    def __init__(self, *args, **kwargs):
        """Metadata dictionary is created, all the metadata attributes, that were 
        not found are set to default empty values. Checks of data types are performed.
        """
        Command.__init__(self, *args, **kwargs)

        self.metadata = {}

        for attr in ['setup_requires', 'tests_require', 'install_requires',
                     'packages', 'py_modules', 'scripts']:
            self.metadata[attr] = to_list(getattr(self.distribution, attr, []))

        for attr in ['url', 'long_description', 'description', 'license']:
            self.metadata[attr] = to_str(getattr(self.distribution.metadata, attr, None))

        self.metadata['classifiers'] = to_list(getattr(self.distribution.metadata,
                                                       'classifiers', []))

        if isinstance(getattr(self.distribution, "entry_points", None), dict):
            self.metadata['entry_points'] = self.distribution.entry_points
        else:
            self.metadata['entry_points'] = None

        self.metadata['test_suite'] = getattr(self.distribution, "test_suite", None) is not None
Пример #9
0
 def __init__(self, dist):
     Command.__init__(self, dist)
     self.sub_commands = ['build']
Пример #10
0
 def __init__(self, dist=None):
     Command.__init__(self, dist=dist)
     self.language = 'fr_FR'
     self.dest = None
     self.domain = None
Пример #11
0
 def __init__(self, dist):
     Command.__init__(self, dist)
     self.runner = TestToolsTestRunner(sys.stdout)
Пример #12
0
 def __init__(self, dist):
     self._compiler = None
     Command.__init__(self, dist)
Пример #13
0
 def __init__ (self, *args):
     self.args = args[0]
     Command.__init__(self, *args)
Пример #14
0
 def __init__(self, *args, **kwargs):
     Command.__init__(self, *args)
     build_installer.__init__(self, dist_dir=self.dist_dir)
Пример #15
0
 def __init__(self, distribution, source=None):
     Command.__init__(self, distribution)
     self.source = source
Пример #16
0
 def __init__(self, *args):
     self.args = args[0]
     Command.__init__(self, *args)
Пример #17
0
 def __init__(self, dist, **kw):
     # Add support for keyword arguments
     _Command.__init__(self, dist)
     for k, v in kw.items():
         setattr(self, k, v)
Пример #18
0
 def __init__(self, *args, **kwargs):
     Command.__init__(self, *args, **kwargs)
Пример #19
0
 def __init__(self, dist):
     Command.__init__(self, dist)
     self.runner = TestToolsTestRunner(sys.stdout)
Пример #20
0
 def __init__(self, *args, **kwargs):
     Command.__init__(self, *args, **kwargs)
Пример #21
0
 def __init__(self, dist, **kwargs):
     self.shell = None
     self.output = None
     Command.__init__(self, dist, **kwargs)
Пример #22
0
 def __init__(self, *args, **kwargs):
     Command.__init__(self, *args, **kwargs)
     self.api_dir = os.path.join('doc', 'source', 'api')
     self.overwrite = 0
     self.pre_rm = 0
Пример #23
0
find_packages = PackageFinder.find
>>>>>>> 54eef0be98b1b67c8507db91f4cfa90b64991027

setup = distutils.core.setup

_Command = _get_unpatched(_Command)

class Command(_Command):
    __doc__ = _Command.__doc__

    command_consumes_arguments = False

    def __init__(self, dist, **kw):
<<<<<<< HEAD
        # Add support for keyword arguments
        _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)    # update command with keywords
        return cmd

distutils.core.Command = Command    # we can't patch distutils.cmd, alas

def findall(dir = os.curdir):
    """Find all files under 'dir' and return the list of full filenames
    (relative to 'dir').
    """
Пример #24
0
 def __init__(self, dist):
     Command.__init__(self, dist)
     self.sub_commands = ['build']
Пример #25
0
 def __init__(self, dist=None):
     Command.__init__(self, dist=dist)
     self.language = 'xx_XX'
     self.dest = None
Пример #26
0
 def __init__(self, *args):
     self.args = args[0]  # so we can pass it to other classes
     Command.__init__(self, *args)
Пример #27
0
 def __init__(self, dist):
     Command.__init__(self, dist)
     self.verbose = False  # __init__ sets verbose to True after calling initialize_options
Пример #28
0
 def __init__(self, *args):
     self.args = args[0] # so we can pass it to other classes
     Command.__init__(self, *args)
Пример #29
0
 def __init__(self, dist):
     Command.__init__(self, dist)
     self.project_dir = os.path.abspath(os.path.dirname(__file__))
     self.temp_dir = os.path.join(self.project_dir, '~temp')
     self.virtualenv_dir = os.path.join(self.project_dir, 'env')
Пример #30
0
 def __init__(self, dist, **kw):
     # Add support for keyword arguments
     _Command.__init__(self,dist)
     for k,v in kw.items():
         setattr(self,k,v)
Пример #31
0
 def __init__(self, dist):
     self._compiler = None
     Command.__init__(self, dist)