コード例 #1
0
ファイル: setuptools_ext.py プロジェクト: untitaker/snaek
 def run(self):
     base_build_ext.run(self)
     if self.inplace:
         build_py = self.get_finalized_command('build_py')
         build_rustlib(
             module_def,
             build_py.get_package_dir(module_def.module_base_path))
コード例 #2
0
 def run(self):
     base_build_ext.run(self)
     if self.inplace:
         build_py = self.get_finalized_command('build_py')
         for func, module_base in spec._dist_build_funcs:
             base_path = None
             if module_base is not None:
                 base_path = build_py.get_package_dir(module_base)
             func(base_path=base_path, inplace=True)
コード例 #3
0
 def run(self):
     base_class_2.run(self)
     if self.inplace:
         # from get_ext_fullpath() in distutils/command/build_ext.py
         module_path = module_name.split('.')
         package = '.'.join(module_path[:-1])
         build_py = self.get_finalized_command('build_py')
         package_dir = build_py.get_package_dir(package)
         file_name = module_path[-1] + '.py'
         generate_mod(os.path.join(package_dir, file_name))
コード例 #4
0
ファイル: setuptools_ext.py プロジェクト: arpit10/CreditCard
 def run(self):
     base_class_2.run(self)
     if self.inplace:
         # from get_ext_fullpath() in distutils/command/build_ext.py
         module_path = module_name.split('.')
         package = '.'.join(module_path[:-1])
         build_py = self.get_finalized_command('build_py')
         package_dir = build_py.get_package_dir(package)
         file_name = module_path[-1] + '.py'
         generate_mod(os.path.join(package_dir, file_name))
コード例 #5
0
            def get_ext_fullpath(self, ext_name):
                milksnake_dummy_ext = None
                for ext in spec.dist.ext_modules:
                    if ext.name == ext_name:
                        milksnake_dummy_ext = getattr(ext,
                                                      'milksnake_dummy_ext',
                                                      None)
                        break

                if milksnake_dummy_ext is None:
                    return base_build_ext.get_ext_fullpath(self, ext_name)

                fullname = self.get_ext_fullname(ext_name)
                modpath = fullname.split('.')
                package = '.'.join(modpath[0:-1])
                build_py = self.get_finalized_command('build_py')
                package_dir = os.path.abspath(
                    build_py.get_package_dir(package))
                return os.path.join(package_dir, milksnake_dummy_ext)
コード例 #6
0
 def get_package_dir(self, package):
     res = _build_py.get_package_dir(self, package)
     if self.distribution.src_root is not None:
         return os.path.join(self.distribution.src_root, res)
     return res
コード例 #7
0
ファイル: build_py.py プロジェクト: RONNCC/Heroku_sghose
 def get_package_dir(self, package):
     res = _build_py.get_package_dir(self, package)
     if self.distribution.src_root is not None:
         return os.path.join(self.distribution.src_root, res)
     return res
コード例 #8
0
ファイル: __init__.py プロジェクト: exedre/netsa-python
 def get_package_dir(self, package):
     return os.path.join(self.distribution.source_dir,
                         build_py.get_package_dir(self, package))
コード例 #9
0
 def get_package_dir(self, package):
     """Return full path to source package directory."""
     return os.path.join(self.distribution.srcdir, _build_py.get_package_dir(self, package))
コード例 #10
0
 def run(self):
     build_ext.run(self)
     if self.inplace:
         build_py = self.get_finalized_command('build_py')
         build_libsourcemap(build_py.get_package_dir(PACKAGE))
コード例 #11
0
 def run(self):
     build_ext.run(self)
     if self.inplace:
         build_py = self.get_finalized_command('build_py')
         build_tutorial(build_py.get_package_dir(PACKAGE))
コード例 #12
0
ファイル: setup.py プロジェクト: getsentry/symsynd
 def run(self):
     build_ext.run(self)
     if self.inplace:
         build_py = self.get_finalized_command('build_py')
         build_libsymboizer(build_py.get_package_dir(PACKAGE))