Skip to content

Commit

Permalink
updated make_devtools scripts to run properly on AstraLinux and RosaL…
Browse files Browse the repository at this point in the history
…inux
  • Loading branch information
NicSavichev committed Dec 15, 2024
1 parent 4f0d3d6 commit afaa488
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions make_devtools.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 7 additions & 2 deletions make_devtools_linux.py
Original file line number Diff line number Diff line change
@@ -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.")
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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()
4 changes: 2 additions & 2 deletions make_devtools_macOS.py
Original file line number Diff line number Diff line change
@@ -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.")
Expand Down

0 comments on commit afaa488

Please sign in to comment.