• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python build_ext.initialize_options函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中setuptools.command.build_ext.build_ext.initialize_options函数的典型用法代码示例。如果您正苦于以下问题:Python initialize_options函数的具体用法?Python initialize_options怎么用?Python initialize_options使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: initialize_options

 def initialize_options(self, *args):
     from distutils.sysconfig import get_config_vars
     (opt,) = get_config_vars('OPT')
     if opt:
         os.environ['OPT'] = ' '.join(flag for flag in opt.split() 
                                  if flag and flag != '-Wstrict-prototypes')
     build_ext.initialize_options(self)
开发者ID:jooddang,项目名称:jpype,代码行数:7,代码来源:setup.py


示例2: initialize_options

 def initialize_options(self):
     build_ext.initialize_options(self)
     self.extra_compile_args = None
     self.with_mysql_capi = None
     self.with_protobuf_include_dir = None
     self.with_protobuf_lib_dir = None
     self.with_protoc = None
开发者ID:sanpingz,项目名称:mysql-connector,代码行数:7,代码来源:cpy_distutils.py


示例3: initialize_options

 def initialize_options(self):
     from numpy import get_include
     _build_ext.initialize_options(self)
     if self.include_dirs is None:
         self.include_dirs = get_include()
     else:
         self.include_dirs += get_include()
开发者ID:LeeKamentsky,项目名称:python-javabridge,代码行数:7,代码来源:setup.py


示例4: initialize_options

    def initialize_options(self):
        self.with_proj4 = 1
        self.with_geos = 1
        self.with_geosadvanced = 0
        self.with_iconv = 1
        self.with_freexl = 0

        build_ext.initialize_options(self)
开发者ID:SeanHayes,项目名称:pyspatialite,代码行数:8,代码来源:setup.py


示例5: initialize_options

    def initialize_options(self, *args):
        """omit -Wstrict-prototypes from CFLAGS since its only valid for C code."""
        import distutils.sysconfig
        cfg_vars = distutils.sysconfig.get_config_vars()
        if 'CFLAGS' in cfg_vars:
            cfg_vars['CFLAGS'] = cfg_vars['CFLAGS'].replace('-Wstrict-prototypes', '')

        build_ext.initialize_options(self)
开发者ID:baztian,项目名称:jpype,代码行数:8,代码来源:setup.py


示例6: initialize_options

 def initialize_options(self):
     build_ext.initialize_options(self)
     self.fast = False
     self.gcov = False
     self.vector = False
     self.mpir = False
     self.static = False
     self.gdb = False
开发者ID:BrianGladman,项目名称:gmpy2,代码行数:8,代码来源:setup.py


示例7: initialize_options

    def initialize_options(self, *args):
        """omit -Wstrict-prototypes from CFLAGS since its only valid for C code."""
        from distutils.sysconfig import get_config_vars
        (opt,) = get_config_vars('OPT')
        if opt:
            os.environ['OPT'] = ' '.join(flag for flag in opt.split()
                                         if flag != '-Wstrict-prototypes')

        build_ext.initialize_options(self)
开发者ID:anthrotype,项目名称:jpype,代码行数:9,代码来源:setup.py


示例8: initialize_options

 def initialize_options(self):
     build_ext.initialize_options(self)
     self.swig_extra = None
     if os.name == 'nt':
         self.libraries = ['ssleay32', 'libeay32']
         self.openssl = 'c:\\pkg'
     else:
         self.libraries = ['ssl', 'crypto']
         self.openssl = '/usr'
开发者ID:grid4hpc,项目名称:pilot,代码行数:9,代码来源:setup.py


示例9: initialize_options

 def initialize_options(self):
     try:
         super(build_ext, self).initialize_options()
     except TypeError:
         # distutils parent class an old style Python class
         _build_ext.initialize_options(self)
     self.r_autoconfig = None
     self.r_home = None
     self.r_home_lib = None
     self.ignore_check_rversion = False
开发者ID:scottcode,项目名称:rpy2,代码行数:10,代码来源:setup.py


示例10: initialize_options

 def initialize_options(self):
     # self.include_dirs = [] # gets overwritten by super init
     build_ext.initialize_options(self)
     # https://stackoverflow.com/questions/21605927/why-doesnt-setup-requires-work-properly-for-numpy
     try:
         __builtins__.__NUMPY_SETUP__ = False
     except AttributeError:
         # this may happen, if numpy requirement is already fulfilled.
         pass
     from numpy import get_include
     self.include_dirs = [get_include()]
开发者ID:ismaelresp,项目名称:PyEMMA,代码行数:11,代码来源:setup.py


示例11: initialize_options

    def initialize_options(self):
        _build_ext.initialize_options(self)
        self.extra_cmake_args = os.environ.get('XLNTPYARROW_CMAKE_OPTIONS', '')
        self.build_type = os.environ.get('XLNTPYARROW_BUILD_TYPE', 'Debug')

        self.cmake_cxxflags = os.environ.get('XLNTPYARROW_CXXFLAGS', '')

        if sys.platform == 'win32':
            # Cannot do debug builds in Windows unless Python itself is a debug
            # build
            if not hasattr(sys, 'gettotalrefcount'):
                self.build_type = 'Release'
开发者ID:Polymedia,项目名称:xlnt,代码行数:12,代码来源:setup.py


示例12: initialize_options

    def initialize_options(self, *args):
        """omit -Wstrict-prototypes from CFLAGS since its only valid for C code."""
        import distutils.sysconfig
        cfg_vars = distutils.sysconfig.get_config_vars()
#        if 'CFLAGS' in cfg_vars:
#            cfg_vars['CFLAGS'] = cfg_vars['CFLAGS'].replace('-Wstrict-prototypes', '')
        for k,v in cfg_vars.items():
            if isinstance(v,str) and v.find("-Wstrict-prototypes"):
                v=v.replace('-Wstrict-prototypes', '')
                cfg_vars[k]=v
                
            if isinstance(v,str) and v.find("-Wimplicit-function-declaration"):
                v=v.replace('-Wimplicit-function-declaration', '')
                cfg_vars[k]=v 
        build_ext.initialize_options(self)
开发者ID:originell,项目名称:jpype,代码行数:15,代码来源:build_ext.py


示例13: initialize_options

 def initialize_options(self):
     build_ext_.initialize_options(self)
     self.omp = OMP_DEFAULT
开发者ID:vasole,项目名称:bitshuffle,代码行数:3,代码来源:setup.py


示例14: initialize_options

 def initialize_options(self):
     build_ext.initialize_options(self)
     if getattr(self, 'use_system_libuv', None) is None:
         self.use_system_libuv = 0
开发者ID:methane,项目名称:uvloop,代码行数:4,代码来源:setup.py


示例15: initialize_options

 def initialize_options(self):
     build_ext.initialize_options(self)
     self.debug = False
开发者ID:nucleic,项目名称:enaml,代码行数:3,代码来源:setup.py


示例16: initialize_options

 def initialize_options(self):
     # Initialize some variables.
     self.enable_openmp = 0
     self.disable_openmp = 0
     # Chain to method in parent class.
     _build_ext.initialize_options(self)
开发者ID:gravitationalarry,项目名称:bayestar-localization,代码行数:6,代码来源:setuptools_openmp.py


示例17: initialize_options

    def initialize_options(self):
        build_ext.initialize_options(self)

        self.gdaldir = None
        self.gdal_config = self.GDAL_CONFIG
开发者ID:cquest,项目名称:pygdal,代码行数:5,代码来源:setup.py


示例18: initialize_options

 def initialize_options(self):
     build_ext.initialize_options(self)
     self.nvcc_settings = None
     self.cuda_devices = None
开发者ID:ska-sa,项目名称:montblanc,代码行数:4,代码来源:tensorflow_ops_ext.py


示例19: initialize_options

 def initialize_options(self):
     build_ext.initialize_options(self)
     self.njobs = None
开发者ID:GalSim-developers,项目名称:GalSim,代码行数:3,代码来源:setup.py


示例20: initialize_options

 def initialize_options(self):
     _build_ext.initialize_options(self)
     self.skip_driver = None
开发者ID:abazhaniuk,项目名称:chipsec,代码行数:3,代码来源:setup.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python build_ext.run函数代码示例发布时间:2022-05-27
下一篇:
Python build_ext.finalize_options函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap