예제 #1
0
 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()
예제 #2
0
 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
0
 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
예제 #4
0
 def initialize_options(self):
     self.disable_platform_guessing = None
     self.add_imaging_libs = ""
     build_ext.initialize_options(self)
     for x in self.feature:
         setattr(self, f"disable_{x}", None)
         setattr(self, f"enable_{x}", None)
예제 #5
0
파일: setup.py 프로젝트: jooddang/jpype
 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)
예제 #6
0
 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()
예제 #7
0
 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
예제 #8
0
    def initialize_options(self):
        build_ext.initialize_options(self)

        self.numpy_include_dir = get_numpy_include()
        self.gdaldir = None
        self.gdal_config = self.GDAL_CONFIG
        self.extra_cflags = []
        self.parallel = True # Python 3.5 only
예제 #9
0
파일: setup.py 프로젝트: BrianGladman/gmpy2
 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
예제 #10
0
파일: setup.py 프로젝트: baztian/jpype
    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)
예제 #11
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     # setuptools bug causes these to be lost during reinitialization by
     # ./setup.py develop
     if not hasattr(self, 'coverage'):
         self.coverage = None
     if not hasattr(self, 'split_debug'):
         self.split_debug = None
예제 #12
0
    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)
예제 #13
0
    def initialize_options(self):

        # Initialize base class
        build_ext.initialize_options(self)

        # Override define. This is supposed to pass C preprocessor macros, but we use it
        # to pass custom options to CMake.
        self.define = None
예제 #14
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     # Set default values for custom cmdline flags
     self.storm_dir = None
     self.disable_dft = None
     self.disable_pars = None
     self.debug = None
     self.jobs = None
예제 #15
0
    def initialize_options(self):
        self.with_proj4 = 1
        self.with_geos = 1
        self.with_geosadvanced = 0
        self.with_iconv = 1
        self.with_freexl = 0
        self.with_spatialite_init_ex = 0

        build_ext.initialize_options(self)
예제 #16
0
파일: setup.py 프로젝트: rim99/jpype
    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)
예제 #17
0
파일: setup.py 프로젝트: anthrotype/jpype
    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)
예제 #18
0
파일: setup.py 프로젝트: grid4hpc/pilot
 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'
예제 #19
0
    def initialize_options(self, *args, **kwargs):
        build_ext.initialize_options(self, *args, **kwargs)

        if self.include_dirs is None:
            self.include_dirs = []

        self.__ac_include = mkincludes()

        self.include_dirs.append(self.__ac_include)
예제 #20
0
파일: setup.py 프로젝트: scottcode/rpy2
 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
예제 #21
0
 def initialize_options(self):
     # Initialize options.
     self.with_boost = 0
     self.with_gsl = 1
     self.with_gsl_static = 0
     self.debug = 0
     self.no_build = 0
     self.cmake_options = {}
     #  super().initialize_options()
     _build_ext.initialize_options(self)
예제 #22
0
파일: setup.py 프로젝트: uhjish/rpy2
 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
예제 #23
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     # Load setup config
     self.config.load_from_file("build/build_config.cfg")
     # Set default values for custom cmdline flags
     self.storm_dir = None
     self.disable_dft = None
     self.disable_pars = None
     self.debug = None
     self.jobs = None
예제 #24
0
파일: setup.py 프로젝트: kziolkowska/PyEMMA
 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()]
예제 #25
0
파일: setup.py 프로젝트: ismaelresp/PyEMMA
 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()]
예제 #26
0
파일: setup.py 프로젝트: barluc/xlnt-1
    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'
예제 #27
0
파일: setup.py 프로젝트: Polymedia/xlnt
    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'
예제 #28
0
    def initialize_options(self):
        _build_ext.initialize_options(self)

        self.swig = False
        self.build_only = False
        self.external_libs = ''
        self.CC = ''
        self.CXX = ''
        self.MPICC = ''
        self.MPICXX = ''
        self.strumpack_prefix = ''
        if os.getenv('STRUMPACK_PREFIX') is not None:
            self.strumpack_prefix = os.getenv('STRUMPACK_PREFIX')
예제 #29
0
    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)
예제 #30
0
파일: setup.py 프로젝트: avirshup/PyEMMA
        def initialize_options(self):
            build_ext.initialize_options(self)
            try:
                import numpy
                dir = numpy.get_include()
            except ImportError:
                # this method should work for pip installations, where the numpy
                # egg is located in the source folder
                import pkg_resources
                dir = pkg_resources.resource_filename('numpy', 'core/include')

            if not os.path.isdir(dir):
                raise RuntimeError("NumPy include dir '%s' not found")

            self.include_dirs = [dir]
예제 #31
0
    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)
예제 #32
0
 def initialize_options(self):
     self.ambitpath = None
     self.max_det_orb = 64
     self.enable_codecov = "OFF"
     self.cmake_config_options = ""
     self.cmake_build_options = ""
     self.nprocs = None
     return build_ext.initialize_options(self)
예제 #33
0
    def initialize_options(self):

        # Initialize base class
        build_ext.initialize_options(self)

        # Initialize the '--define' custom option, overriding the pre-existing one.
        # Originally, it was aimed to pass C preprocessor definitions, but instead we
        # use it to pass custom configuration options to CMake.
        self.define = None

        # Initialize the '--component' custom option.
        # It overrides the content of the cmake_component option of CMakeExtension.
        self.component = None

        # Initialize the 'no-cmake-extension' custom option.
        # It allows disabling one or more CMakeExtension from the command line.
        self.no_cmake_extension = None
예제 #34
0
 def initialize_options(self):
     self.ambitpath = None
     self.max_det_orb = 64
     self.enable_codecov = 'OFF'
     self.cmake_config_options = ''
     ncore_phys = psutil.cpu_count(logical=False)
     ncore_virt = psutil.cpu_count(logical=True)
     nprocs = ncore_phys + 1 if ncore_phys != ncore_virt else ncore_phys
     self.cmake_build_options = f'-j{nprocs}'
     return build_ext.initialize_options(self)
예제 #35
0
    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()
        replacement = {
            '-Wstrict-prototypes': '',
            '-Wimplicit-function-declaration': '',
        }
        replacement['-O3'] = '-O0'

        for k, v in cfg_vars.items():
            if not isinstance(v, str):
                continue
            if not k == "OPT" and not "FLAGS" in k:
                continue
            for r, t in replacement.items():
                if v.find(r) != -1:
                    v = v.replace(r, t)
                    cfg_vars[k] = v
        build_ext.initialize_options(self)
예제 #36
0
    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', '')
        replacement = {
            '-Wstrict-prototypes': '',
            '-Wimplicit-function-declaration': '',
        }
        tracing = self.distribution.enable_tracing
        if tracing:
            replacement['-O3'] = '-O0'

        for k, v in cfg_vars.items():
            for r, t in replacement.items():
                if isinstance(
                        v, str) and k.find("FLAGS") != -1 and v.find(r) != -1:
                    v = v.replace(r, t)
                    cfg_vars[k] = v
        build_ext.initialize_options(self)
예제 #37
0
파일: basesetup.py 프로젝트: cing/mdtraj
 def initialize_options(self):
     _build_ext.initialize_options(self)
     import pkg_resources
     dir = pkg_resources.resource_filename('numpy', 'core/include')
     assert os.path.exists(dir), "Numpy include dir not found"
     self.include_dirs = [dir]
예제 #38
0
파일: setup.py 프로젝트: abazhaniuk/chipsec
 def initialize_options(self):
     _build_ext.initialize_options(self)
     self.skip_driver = None
예제 #39
0
파일: setup.py 프로젝트: vasole/bitshuffle
 def initialize_options(self):
     build_ext_.initialize_options(self)
     self.omp = OMP_DEFAULT
예제 #40
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.extra_compile_args = None
     self.extra_link_args = None
예제 #41
0
 def initialize_options(self):
     _build_ext.initialize_options(self)
     import pkg_resources
     dir = pkg_resources.resource_filename('numpy', 'core/include')
     self.include_dirs = [dir]
예제 #42
0
파일: setup.py 프로젝트: youngpm/pygdal
    def initialize_options(self):
        build_ext.initialize_options(self)

        self.gdaldir = None
        self.gdal_config = self.GDAL_CONFIG
예제 #43
0
파일: setup.py 프로젝트: Afelio/PTVS
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.inplace = 1
예제 #44
0
파일: setup.py 프로젝트: methane/uvloop
 def initialize_options(self):
     build_ext.initialize_options(self)
     if getattr(self, 'use_system_libuv', None) is None:
         self.use_system_libuv = 0
예제 #45
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.ffmpeg_dir = None
예제 #46
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.njobs = None
예제 #47
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.opt_flags = None
 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)
예제 #49
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.njobs = None
예제 #50
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.nvcc_settings = None
     self.cuda_devices = None
예제 #51
0
파일: setup.py 프로젝트: ska-sa/spead2
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.coverage = None
예제 #52
0
파일: setup.py 프로젝트: cquest/pygdal
    def initialize_options(self):
        build_ext.initialize_options(self)

        self.gdaldir = None
        self.gdal_config = self.GDAL_CONFIG
예제 #53
0
파일: setup.py 프로젝트: darioush/catbox
 def initialize_options(self):
     self.enable_pcre = enable_pcre
     build_ext.initialize_options(self)
예제 #54
0
 def initialize_options(self):
     _build_ext.initialize_options(self)
예제 #55
0
파일: setup.py 프로젝트: nucleic/enaml
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.debug = False
예제 #56
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
예제 #57
0
파일: command.py 프로젝트: openalea/deploy
 def initialize_options(self):
     old_build_ext.initialize_options(self)
     self.scons_ext_param = ""  # None value are not accepted
     self.scons_path = None  # Scons path
예제 #58
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.healpix_dir = None
     self.healpix_include_dir = None
     self.healpix_lib_dir = None
     self.healpix_data_dir = None
예제 #59
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.no_pkg_config = None