Python setuptools.command.install.install.finalize_options() Examples

The following are 30 code examples of setuptools.command.install.install.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 setuptools.command.install.install , or try the search function .
Example #1
Source File: setup.py    From pcocc with GNU General Public License v3.0 6 votes vote down vote up
def finalize_options(self):
        self.distribution.data_files.append((os.path.join(self.sysconfdir, 'pcocc'),
                                             glob.glob('confs/*.yaml')))
        self.distribution.data_files.append((os.path.join(self.sysconfdir, 'pcocc/helpers/examples/'),
                                             glob.glob('helpers/examples/*')))
        self.distribution.data_files.append((os.path.join(self.mandir, 'man1'),
                                             glob.glob('docs/build/man/*.1')))
        self.distribution.data_files.append((os.path.join(self.mandir, 'man5'),
                                             glob.glob('docs/build/man/*.5')))
        self.distribution.data_files.append((os.path.join(self.mandir, 'man7'),
                                             glob.glob('docs/build/man/*.7')))

        self.distribution.data_files.append((os.path.join(self.sysconfdir, 'slurm/lua.d'),
                                             ['plugins/slurm/vm-setup.lua']))
        if self.unitdir:
            self.distribution.data_files+=[(self.unitdir, ['dist/pkeyd.service'])]

        self.distribution.data_files += recursive_scan_data_files(self.pkgdocdir, 'docs/build/html/')

        install.finalize_options(self) 
Example #2
Source File: setup.py    From future-fstrings with MIT License 6 votes vote down vote up
def finalize_options(self):
        _install.finalize_options(self)

        install_suffix = os.path.relpath(
            self.install_lib, self.install_libbase,
        )
        if install_suffix == '.':
            distutils.log.info('skipping install of .pth during easy-install')
        elif install_suffix == self.extra_path[1]:
            self.install_lib = self.install_libbase
            distutils.log.info(
                "will install .pth to '%s.pth'",
                os.path.join(self.install_lib, self.extra_path[0]),
            )
        else:
            raise AssertionError(
                'unexpected install_suffix',
                self.install_lib, self.install_libbase, install_suffix,
            ) 
Example #3
Source File: setup.py    From reactivepy with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def finalize_options(self):
        install.finalize_options(self) 
Example #4
Source File: setup.py    From tfx-bsl with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    install.finalize_options(self)
    self.install_lib = self.install_platlib 
Example #5
Source File: setup.py    From liblsl-Python with MIT License 5 votes vote down vote up
def finalize_options(self):
        install.finalize_options(self)
        if self.distribution.has_ext_modules():
            self.install_lib = self.install_platlib 
Example #6
Source File: setup.py    From SpiceyPy with MIT License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #7
Source File: setup.py    From keras-lambda with MIT License 5 votes vote down vote up
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow', 'include')
    return ret 
Example #8
Source File: setup.py    From keras-lambda with MIT License 5 votes vote down vote up
def finalize_options(self):
    self.set_undefined_options('install',
                               ('install_headers', 'install_dir'),
                               ('force', 'force')) 
Example #9
Source File: setup.py    From keras-lambda with MIT License 5 votes vote down vote up
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow', 'include')
    return ret 
Example #10
Source File: setup.py    From keras-lambda with MIT License 5 votes vote down vote up
def finalize_options(self):
    self.set_undefined_options('install',
                               ('install_headers', 'install_dir'),
                               ('force', 'force')) 
Example #11
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 #12
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 #13
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 #14
Source File: setup.py    From fades with GNU General Public License v3.0 5 votes vote down vote up
def finalize_options(self):
        """Alter the installation path."""
        install.finalize_options(self)
        if self.prefix is None:
            # no place for man page (like in a 'snap')
            man_dir = None
        else:
            man_dir = os.path.join(self.prefix, "share", "man", "man1")

            # if we have 'root', put the building path also under it (used normally
            # by pbuilder)
            if self.root is not None:
                man_dir = os.path.join(self.root, man_dir[1:])
        self._custom_man_dir = man_dir 
Example #15
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 #16
Source File: setup.py    From supersqlite with MIT License 5 votes vote down vote up
def finalize_options(self):
        install.finalize_options(self)
        if self.distribution.has_ext_modules():
            self.install_lib = self.install_platlib 
Example #17
Source File: setup.py    From reactivepy with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def finalize_options(self):
        pass 
Example #18
Source File: setup.py    From SpiceyPy with MIT License 5 votes vote down vote up
def finalize_options(self):
        install.finalize_options(self)
        self.install_lib = self.install_platlib 
Example #19
Source File: setup.py    From reactivepy with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def finalize_options(self):
        develop.finalize_options(self) 
Example #20
Source File: setup.py    From tensorboard with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    self.set_undefined_options('install',
                               ('install_headers', 'install_dir'),
                               ('force', 'force')) 
Example #21
Source File: setup.py    From tensorboard with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow', 'include')
    return ret 
Example #22
Source File: setup.py    From rocketmq-client-python with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
        install.finalize_options(self)
        # force platlib
        self.install_lib = self.install_platlib 
Example #23
Source File: setup.py    From rocketmq-client-python with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
            _bdist_wheel.finalize_options(self)
            # Mark us as not a pure python package (we have platform specific C/C++ code)
            self.root_is_pure = False 
Example #24
Source File: setup.py    From fold with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    self.set_undefined_options('install',
                               ('install_headers', 'install_dir'),
                               ('force', 'force')) 
Example #25
Source File: setup.py    From fold with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow_fold', 'include')
    return ret 
Example #26
Source File: setup.py    From python-zpar with MIT License 5 votes vote down vote up
def finalize_options(self):
        install.finalize_options(self)
        self.set_undefined_options('build', ('build_scripts', 'build_scripts')) 
Example #27
Source File: setup.py    From ctpbee with MIT License 5 votes vote down vote up
def finalize_options(self):
        install.finalize_options(self)
        assert type(self.uri) == str or self.uri is None
        assert self.fix in ['false', "true"] 
Example #28
Source File: setup.py    From text with Apache License 2.0 5 votes vote down vote up
def finalize_options(self):
    """For more info; see http://github.com/google/or-tools/issues/616 ."""
    install.finalize_options(self)
    self.install_lib = self.install_platlib
    self.install_libbase = self.install_lib
    self.install_lib = os.path.join(self.install_lib, self.extra_dirs) 
Example #29
Source File: setup.py    From IPlantUML with MIT License 5 votes vote down vote up
def finalize_options(self):
        _install.finalize_options(self)
        if self.jarpath is not None:
            search_and_replace(self.jarpath) 
Example #30
Source File: setup.py    From PyBloqs with GNU Lesser General Public License v2.1 5 votes vote down vote up
def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True