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

The following are 30 code examples for showing how to use distutils.command.build.build.finalize_options(). These examples are extracted from open source projects. 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 check out the related API usage on the sidebar.

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
Project: recruit   Author: Frank-qlu   File: build.py    License: 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 2
Project: lambda-packs   Author: ryfeus   File: build.py    License: 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 3
Project: lambda-packs   Author: ryfeus   File: build.py    License: 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 4
Project: auto-alt-text-lambda-api   Author: abhisuri97   File: build.py    License: 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 5
Project: openfst-python   Author: jpuigcerver   File: setup.py    License: 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 6
Project: openfst-python   Author: jpuigcerver   File: setup.py    License: 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 7
Project: vnpy_crypto   Author: birforce   File: build.py    License: 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 8
Project: Computable   Author: ktraunmueller   File: build.py    License: 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 9
Project: xcffib   Author: tych0   File: setup.py    License: 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 10
Project: xcffib   Author: tych0   File: setup.py    License: 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 11
Project: Mastering-Elasticsearch-7.0   Author: PacktPublishing   File: build.py    License: 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
Project: GraphicDesignPatternByPython   Author: Relph1119   File: build.py    License: 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 13
Project: predictive-maintenance-using-machine-learning   Author: awslabs   File: build.py    License: 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 14
Project: Fluid-Designer   Author: Microvellum   File: build.py    License: GNU General Public License v3.0 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 15
Project: pySINDy   Author: luckystarufo   File: build.py    License: 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
Project: mxnet-lambda   Author: awslabs   File: build.py    License: 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 17
Project: qpid-python   Author: apache   File: setup.py    License: Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    _build.finalize_options(self)
    if self.build_doc is None:
      self.build_doc = "%s/doc" % self.build_base 
Example 18
Project: qpid-python   Author: apache   File: setup.py    License: Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    self.set_undefined_options('build', ('build_doc', 'build_doc')) 
Example 19
Project: qpid-python   Author: apache   File: setup.py    License: 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 20
Project: qpid-python   Author: apache   File: setup.py    License: 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 21
Project: ImageFusion   Author: pfchai   File: build.py    License: 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 22
Project: virt-who   Author: candlepin   File: setup.py    License: 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 23
Project: virt-who   Author: candlepin   File: setup.py    License: 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 24
Project: Splunking-Crime   Author: nccgroup   File: build.py    License: 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 25
Project: ccs-pyosxframeworks   Author: apple   File: setup.py    License: 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 26
Project: ccs-pyosxframeworks   Author: apple   File: setup.py    License: 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 27
Project: elasticintel   Author: securityclippy   File: build.py    License: 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 28
Project: coffeegrindsize   Author: jgagneastro   File: build.py    License: 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 29
Project: Carnets   Author: holzschu   File: build.py    License: 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 30
Project: Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda   Author: PacktPublishing   File: build.py    License: 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)