예제 #1
0
 def finalize_options(self):
     """Finalize the options."""
     bdist.finalize_options(self)
     BaseCommand.finalize_options(self)
     cmd_build = self.get_finalized_command("build")
     self.build_base = cmd_build.build_base
     self.set_undefined_options("bdist", ("dist_dir", "dist_dir"))
예제 #2
0
    def finalize_options(self):
        if not self.build_extra_opts:
            self.build_extra_opts = ''

        if not self.install_extra_opts:
            self.install_extra_opts = ''

        _bdist.finalize_options(self)
예제 #3
0
 def finalize_options(self):
     """Finalize the options."""
     bdist.finalize_options(self)
     BaseCommand.finalize_options(self)
     self.set_undefined_options("bdist", ("dist_dir", "dist_dir"))
     if self.debug:
         self.log.setLevel(logging.DEBUG)
         log.set_threshold(1)  # Set Distutils logging level to DEBUG
예제 #4
0
    def finalize_options(self):
        if not self.build_extra_opts:
            self.build_extra_opts = ''

        if not self.install_extra_opts and not self.dontpreservepath:
            self.install_extra_opts = '--preservepath'
        elif self.install_extra_opts and not self.dontpreservepath:
            if self.install_extra_opts.find('--preservepath') == -1:
                self.install_extra_opts = \
                        self.install_extra_opts + ' --preservepath'
        elif self.install_extra_opts and self.dontpreservepath:
            pass
        else:
            self.install_extra_opts = ''

        _bdist.finalize_options(self)
예제 #5
0
파일: bdist.py 프로젝트: LANJr4D/FRED
    def finalize_options(self):
        if not self.build_extra_opts:
            self.build_extra_opts = ''
        
        if not self.install_extra_opts and not self.dontpreservepath:
            self.install_extra_opts = '--preservepath'
        elif self.install_extra_opts and not self.dontpreservepath:
            if self.install_extra_opts.find('--preservepath') == -1:
                self.install_extra_opts = \
                        self.install_extra_opts + ' --preservepath'
        elif self.install_extra_opts and self.dontpreservepath:
            pass
        else:
            self.install_extra_opts = ''

        _bdist.finalize_options(self)
예제 #6
0
    def finalize_options(self):
        """Finalize the options."""
        bdist.finalize_options(self)

        def _get_fullname():
            label = "-{}".format(self.label) if self.label else ""
            python_version = "-py{}".format(get_python_version()) \
                if self.byte_code_only else ""
            return "{name}{label}-{version}{edition}{pyver}".format(
                name=self.distribution.get_name(),
                label=label,
                version=self.distribution.get_version(),
                edition=self.edition or "",
                pyver=python_version)

        self.distribution.get_fullname = _get_fullname

        if self.bdist_dir is None:
            self.bdist_dir = os.path.join(self.dist_dir,
                                          "bdist.{}".format(self.plat_name))
        if self.debug:
            self.log.setLevel(logging.DEBUG)
            log.set_threshold(1)  # Set Distutils logging level to DEBUG
예제 #7
0
 def finalize_options(self):
     _bdist.finalize_options(self)
     self.dist_dir = py_dist_dir
예제 #8
0
파일: setup.py 프로젝트: rserran/catboost
 def finalize_options(self):
     _bdist.finalize_options(self)
     Helper.finalize_options(self)
예제 #9
0
 def finalize_options(self):
     _bdist.finalize_options(self)
     self.dist_dir = os.path.relpath(dist_dir)
예제 #10
0
파일: setup.py 프로젝트: zhao07/catbox
 def finalize_options(self):
     global enable_pcre
     enable_pcre = self.enable_pcre
     bdist.finalize_options(self)
 def finalize_options(self):
     bdist.finalize_options(self)
     # Pass option to the build command
     build_cmd = self.get_finalized_command('build')
     if build_cmd.cythonize is None:
         build_cmd.cythonize = self.cythonize
예제 #12
0
 def finalize_options(self):
     lst = [('bdist_zip', BDistZip)]
     for cmd, cls in lst:
         _, desc = self.format_command[cls.format]
         self.format_command[cls.format] = (cmd, desc)
     _bdist.finalize_options(self)