当前位置: 首页>>代码示例>>Python>>正文


Python build_ext.build_extension方法代码示例

本文整理汇总了Python中distutils.command.build_ext.build_ext.build_extension方法的典型用法代码示例。如果您正苦于以下问题:Python build_ext.build_extension方法的具体用法?Python build_ext.build_extension怎么用?Python build_ext.build_extension使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在distutils.command.build_ext.build_ext的用法示例。


在下文中一共展示了build_ext.build_extension方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        if self.amalgamation:
            ext.define_macros += [
                    ("SQLITE_ENABLE_FTS3", "1"),
                    ("SQLITE_ENABLE_FTS3_PARENTHESIS", "1"),
                    ("SQLITE_ENABLE_FTS4", "1"),
                    ("SQLITE_ENABLE_RTREE", "1"),
                    ("SQLITE_MAX_COLUMN", "32767"), # PLASTICITY
                    ("SQLITE_MAX_VARIABLE_NUMBER", "99999")] # PLASTICITY
            ext.sources.append("sqlite3.c")
        try:
            raise Exception("skip") # PLASTICITY
            ext.include_dirs = self._pkgconfig_include_dirs("sqlite3")
            ext.library_dirs = self._pkgconfig_library_dirs("sqlite3")
        except: # Plasticity
            pass # no pkg_config installed
        build_ext.build_extension(self, ext) 
开发者ID:plasticityai,项目名称:magnitude,代码行数:19,代码来源:setup.py

示例2: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        if isinstance(ext, StaticLibrary):
            self.build_static_extension(ext)
        else:
            _build_ext.build_extension(self, ext) 
开发者ID:msmbuilder,项目名称:mdentropy,代码行数:7,代码来源:basesetup.py

示例3: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        try:
            build_ext.build_extension(self, ext)
        except (CCompilerError, DistutilsExecError, DistutilsPlatformError, ValueError):
            raise BuildFailed() 
开发者ID:maximdanilchenko,项目名称:aiochclient,代码行数:7,代码来源:setup.py

示例4: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        try:
            build_ext.build_extension(self, ext)
        except ext_errors as e:
            error(e)
            raise BuildFailed() 
开发者ID:zarr-developers,项目名称:numcodecs,代码行数:8,代码来源:setup.py

示例5: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        try:
            build_ext.build_extension(self, ext)
        except ext_errors:
            raise BuildFailed()
        except ValueError:
            # this can happen on Windows 64 bit, see Python issue 7511
            if "'path'" in str(sys.exc_info()[1]):  # works with both py 2/3
                raise BuildFailed()
            raise 
开发者ID:python-poetry,项目名称:poetry,代码行数:12,代码来源:setup.py

示例6: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        try:
            build_ext.build_extension(self, ext)
        except (CCompilerError, DistutilsExecError,
                DistutilsPlatformError, ValueError):
            raise BuildFailed() 
开发者ID:robinhood,项目名称:aiokafka,代码行数:8,代码来源:setup.py

示例7: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        try:
            build_ext.build_extension(self, ext)
        except ext_errors:
            traceback.print_exc()
            raise BuildFailed()
        except ValueError:
            # this can happen on Windows 64 bit, see Python issue 7511
            traceback.print_exc()
            if "'path'" in str(sys.exc_info()[1]):  # works with both py 2/3
                raise BuildFailed()
            raise 
开发者ID:mobiusklein,项目名称:ms_deisotope,代码行数:14,代码来源:setup.py

示例8: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        try:
            build_ext.build_extension(self, ext)
        except ext_errors:
            raise BuildFailed() 
开发者ID:InfluxGraph,项目名称:influxgraph,代码行数:7,代码来源:setup.py

示例9: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        name = ext.name
        try:
            build_ext.build_extension(self, ext)
        except Exception:
            e = sys.exc_info()[1]
            sys.stdout.write('%s\n' % str(e))
            warnings.warn(self.warning_message % ("The %s extension "
                                                  "module" % (name,),
                                                  "The output above "
                                                  "this warning shows how "
                                                  "the compilation "
                                                  "failed.")) 
开发者ID:NoneGG,项目名称:aredis,代码行数:15,代码来源:setup.py

示例10: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        try:
            build_ext.build_extension(self, ext)
        except (CCompilerError, DistutilsExecError, DistutilsPlatformError, ValueError):
            print("************************************************************")
            print("Cannot compile C accelerator module, use pure python version")
            print("************************************************************") 
开发者ID:sdispater,项目名称:pendulum,代码行数:9,代码来源:build.py

示例11: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        try:
            build_ext.build_extension(self, ext)
        except build_ext_errors:
            raise BuildExtFailed() 
开发者ID:elastic,项目名称:apm-agent-python,代码行数:7,代码来源:setup.py

示例12: build_extension

# 需要导入模块: from distutils.command.build_ext import build_ext [as 别名]
# 或者: from distutils.command.build_ext.build_ext import build_extension [as 别名]
def build_extension(self, ext):
        if self.amalgamation:
            ext.sources.append("sqlite3.c")
            ext.sources.append("icu.cpp") # PLASTICITY
        try:
            raise Exception("skip") # PLASTICITY
            ext.include_dirs = self._pkgconfig_include_dirs("sqlite3")
            ext.library_dirs = self._pkgconfig_library_dirs("sqlite3")
        except: # Plasticity
            pass # no pkg_config installed
        build_ext.build_extension(self, ext) 
开发者ID:plasticityai,项目名称:supersqlite,代码行数:13,代码来源:setup.py


注:本文中的distutils.command.build_ext.build_ext.build_extension方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。