本文整理汇总了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)
示例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
示例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()
示例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)
示例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)
示例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
示例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)
示例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'
示例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
示例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()]
示例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'
示例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)
示例13: initialize_options
def initialize_options(self):
build_ext_.initialize_options(self)
self.omp = OMP_DEFAULT
示例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
示例15: initialize_options
def initialize_options(self):
build_ext.initialize_options(self)
self.debug = False