--- setup.py.orig 2024-06-20 20:46:47 +++ setup.py 2024-06-20 20:47:06 @@ -135,7 +135,7 @@ } CFLAGS = { - 'darwin': ['-std=c++17'], + 'darwin': ['-std=c++11'], 'linux': ['-std=c++17'], 'freebsd': ['-std=c++17'], 'win32': ['/Zc:wchar_t', '/EHsc'], @@ -195,7 +195,7 @@ except: if not _cflags: raise RuntimeError(''' -Please install pkg-config on your system or set the PYICU_CFLAGS environment +Please install pkg-config on your system or set the PYICU_CFLAGS environment variable to the flags required by the C++ compiler to find the header files for ICU, and possibly -std=c++11 if using ICU version >= 60 or -std=c++17 if using ICU version >= 75 ''') @@ -234,8 +234,8 @@ Please install pkg-config on your system or set the PYICU_LFLAGS environment variable to the flags required by the linker to find the libraries for ICU ''') - + if 'PYICU_LIBRARIES' in os.environ: _libraries = os.environ['PYICU_LIBRARIES'].split(os.pathsep) elif ICU_VERSION < '58':