Python distutils.command.build.build.finalize_options() Examples

The following are 30 code examples of distutils.command.build.build.finalize_options(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module distutils.command.build.build , or try the search function .
Example #1
Source File: build.py    From elasticintel with GNU General Public License v3.0 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #2
Source File: setup.py    From qpid-python with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    _clean.finalize_options(self)
    self.set_undefined_options('build', ('build_doc', 'build_doc')) 
Example #3
Source File: setup.py    From qpid-python with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
      _build_py.finalize_options(self)
      self.package_data = self.distribution.package_data
      self.data_files = self.get_data_files() 
Example #4
Source File: build.py    From ImageFusion with MIT License 5 votes vote down vote up
def finalize_options(self):
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #5
Source File: setup.py    From virt-who with GNU General Public License v2.0 5 votes vote down vote up
def finalize_options(self):
        _build_py.finalize_options(self)
        self.set_undefined_options(
            'build',
            ('rpm_version', 'rpm_version')
        ) 
Example #6
Source File: setup.py    From virt-who with GNU General Public License v2.0 5 votes vote down vote up
def finalize_options(self):
        _build.finalize_options(self)
        if not self.rpm_version:
            self.rpm_version = self.get_git_describe() 
Example #7
Source File: build.py    From Splunking-Crime with GNU Affero General Public License v3.0 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #8
Source File: setup.py    From ccs-pyosxframeworks with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        self.distribution.ext_modules = get_ext_modules()
        build.finalize_options(self) 
Example #9
Source File: setup.py    From ccs-pyosxframeworks with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        self.distribution.ext_modules = get_ext_modules()
        install.finalize_options(self) 
Example #10
Source File: setup.py    From qpid-python with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    self.set_undefined_options('build', ('build_doc', 'build_doc')) 
Example #11
Source File: build.py    From coffeegrindsize with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #12
Source File: build.py    From Carnets with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #13
Source File: build.py    From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #14
Source File: build.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #15
Source File: build.py    From keras-lambda with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #16
Source File: setup.py    From llvmlite with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def finalize_options(self):
        build.finalize_options(self)
        # The build isn't platform-independent
        if self.build_lib == self.build_purelib:
            self.build_lib = self.build_platlib 
Example #17
Source File: setup.py    From llvmlite with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def finalize_options(self):
        install.finalize_options(self)
        # Force use of "platlib" dir for auditwheel to recognize this
        # is a non-pure build
        self.install_libbase = self.install_platlib
        self.install_lib = self.install_platlib 
Example #18
Source File: setup.py    From llvmlite with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def finalize_options(self):
            bdist_wheel.finalize_options(self)
            # The build isn't platform-independent
            self.root_is_pure = False 
Example #19
Source File: setup.py    From xcffib with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        if not os.path.exists('./xcffib'):
            print("It looks like you need to generate the binding.")
            print("please run 'make xcffib' or 'make check'.")
            sys.exit(1)
        install.finalize_options(self)

# Check if we're running PyPy, cffi can't be updated 
Example #20
Source File: build.py    From lambda-packs with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #21
Source File: build.py    From lambda-packs with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #22
Source File: build.py    From auto-alt-text-lambda-api with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #23
Source File: setup.py    From openfst-python with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        build.finalize_options(self)
        # self.set_undefined_options("build_ext", ("download_dir", "download_dir"))
        if self.download_dir:
            openfst_tar_gz = os.path.join(self.download_dir, self.openfst_basename)
            assert os.path.isfile(openfst_tar_gz), (
                "File %s does not exist" % openfst_tar_gz
            )
        else:
            self.download_dir = self.build_temp 
Example #24
Source File: setup.py    From openfst-python with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        build_ext.finalize_options(self)
        self.set_undefined_options("build", ("download_dir", "download_dir")) 
Example #25
Source File: build.py    From vnpy_crypto with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #26
Source File: build.py    From Computable with MIT License 5 votes vote down vote up
def finalize_options(self):
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #27
Source File: setup.py    From xcffib with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        if not os.path.exists('./xcffib'):
            print("It looks like you need to generate the binding.")
            print("please run 'make xcffib' or 'make check'.")
            sys.exit(1)
        build.finalize_options(self) 
Example #28
Source File: build.py    From recruit with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #29
Source File: build.py    From Mastering-Elasticsearch-7.0 with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
Example #30
Source File: build.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier)