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


Python build_ext.initialize_options函数代码示例

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


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


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