diff --git a/make_devtools.py b/make_devtools.py index 1c70a1aec..1dd31bd28 100644 --- a/make_devtools.py +++ b/make_devtools.py @@ -1,7 +1,7 @@ import sys -if not (sys.version_info.major >= 3 and sys.version_info.minor >= 8): - print("\nERROR: Python 3.8 or a higher version is required to run this script.") +if not (sys.version_info.major >= 3 and sys.version_info.minor >= 5): + print("\nERROR: Python 3.5 or a higher version is required to run this script.") exit(1) import sys diff --git a/make_devtools_linux.py b/make_devtools_linux.py index 4f255e578..60ec55e72 100755 --- a/make_devtools_linux.py +++ b/make_devtools_linux.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 import sys -if not (sys.version_info.major >= 3 and sys.version_info.minor >= 8): - print("\nERROR: Python 3.8 or a higher version is required to run this script.") +if not (sys.version_info.major >= 3 and sys.version_info.minor >= 5): + print("\nERROR: Python 3.5 or a higher version is required to run this script.") exit(1) if not sys.platform.startswith('linux'): print("\nERROR: script is expected to be run on linux.") @@ -147,6 +147,9 @@ def download_url(url): else: print('NOTE: you have to install these (or similar) packages manually:\n ' + ' '.join(pkg_to_install) + '\n\n') +if is_rosa_linux: + if not pathlib.Path('/usr/lib64/libclang.so').exists() and pathlib.Path('/usr/lib64/libclang.so.12').exists(): + run('sudo ln -s libclang.so.12 /usr/lib64/libclang.so') # python3 python_dest_folder = dest_dir+'/python3' @@ -274,4 +277,6 @@ def download_url(url): fd.write('RemoveCompilerSwitches_linux/gcc = -mno-recip -minline-all-stringops -fconserve-space ;\n') if is_astra_linux: fd.write('PlatformSpec = clang ;\n') + if is_astra_linux or is_rosa_linux: + fd.write('MArch = -default- ; #remove it to build for haswell\n') # to avoid building daNetGame for haswell arch fd.close() diff --git a/make_devtools_macOS.py b/make_devtools_macOS.py index 843c2078f..f48af6cd1 100755 --- a/make_devtools_macOS.py +++ b/make_devtools_macOS.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 import sys -if not (sys.version_info.major >= 3 and sys.version_info.minor >= 8): - print("\nERROR: Python 3.8 or a higher version is required to run this script.") +if not (sys.version_info.major >= 3 and sys.version_info.minor >= 5): + print("\nERROR: Python 3.5 or a higher version is required to run this script.") exit(1) if not sys.platform.startswith('darwin'): print("\nERROR: script is expected to be run on macOS.")