Example #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()
 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
 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
Example #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)
Example #5
0
 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)
Example #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()
Example #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
Example #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
Example #9
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
Example #10
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', '')

        build_ext.initialize_options(self)
Example #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
Example #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)
Example #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
Example #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
Example #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)
Example #16
0
File: setup.py Project: 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)
Example #17
0
    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)
Example #18
0
 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'
Example #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)
Example #20
0
 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
Example #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)
Example #22
0
File: setup.py Project: 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
Example #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
Example #24
0
 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()]
Example #25
0
 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()]
Example #26
0
    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'
Example #27
0
    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'
Example #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')
Example #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)
Example #30
0
        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]
Example #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)
Example #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)
Example #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
Example #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)
Example #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)
Example #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)
Example #37
0
 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]
Example #38
0
 def initialize_options(self):
     _build_ext.initialize_options(self)
     self.skip_driver = None
Example #39
0
 def initialize_options(self):
     build_ext_.initialize_options(self)
     self.omp = OMP_DEFAULT
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.extra_compile_args = None
     self.extra_link_args = None
Example #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]
Example #42
0
    def initialize_options(self):
        build_ext.initialize_options(self)

        self.gdaldir = None
        self.gdal_config = self.GDAL_CONFIG
Example #43
0
File: setup.py Project: Afelio/PTVS
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.inplace = 1
Example #44
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     if getattr(self, 'use_system_libuv', None) is None:
         self.use_system_libuv = 0
Example #45
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.ffmpeg_dir = None
Example #46
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.njobs = None
Example #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)
Example #49
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.njobs = None
Example #50
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.nvcc_settings = None
     self.cuda_devices = None
Example #51
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.coverage = None
Example #52
0
    def initialize_options(self):
        build_ext.initialize_options(self)

        self.gdaldir = None
        self.gdal_config = self.GDAL_CONFIG
Example #53
0
 def initialize_options(self):
     self.enable_pcre = enable_pcre
     build_ext.initialize_options(self)
Example #54
0
 def initialize_options(self):
     _build_ext.initialize_options(self)
Example #55
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.debug = False
Example #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))
Example #57
0
 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
Example #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
Example #59
0
 def initialize_options(self):
     build_ext.initialize_options(self)
     self.no_pkg_config = None