def test__get_system_version(self): self.assertTrue(platform.mac_ver()[0].startswith( _osx_support._get_system_version()))
'InvertDatabase.cc', 'Partition.cc', 'Sequence.cc', 'common.cc', 'argv_parser.cc', 'SpadeArguments.cc', 'FreqIt.cc', 'EqGrNode.cc', 'ClassInfo.cc' ] ] # Fix compatibility when compiling on Mac Mojave. # Explanation: https://github.com/pandas-dev/pandas/issues/23424#issuecomment-446393981 # Code credit: https://github.com/pandas-dev/pandas/pull/24274/commits/256faf2011a12424e684a42c147e1ba7ac32c6fb if is_platform_mac(): import _osx_support import distutils.sysconfig if not 'MACOSX_DEPLOYMENT_TARGET' in os.environ: current_system = list( map(int, _osx_support._get_system_version().split('.'))) python_osx_target_str = distutils.sysconfig.get_config_var( 'MACOSX_DEPLOYMENT_TARGET') python_osx_target = list(map(int, python_osx_target_str.split('.'))) if python_osx_target < [10, 9] and current_system >= [10, 9]: os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.9' os.environ['CC'] = 'clang' os.environ['CXX'] = 'clang' if is_platform_windows(): extra_compiler_args = [] else: extra_compiler_args = [ '-std=c++11', '-Wno-sign-compare',
def update_event(self, inp=-1): self.set_output_val(0, _osx_support._get_system_version())