Skip to content

Commit

Permalink
Merge pull request easybuilders#19119 from t1mk1k/ensure-casacore-pyt…
Browse files Browse the repository at this point in the history
…hon-dependency-is-used

Ensure right Python version is used in DP3, WSClean and dependencies
  • Loading branch information
casparvl authored Oct 31, 2023
2 parents dc8e0c9 + d7da953 commit a8aca9a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ dependencies = [
('libxml2', '2.9.13'),
]

# Without this, the wrong (system) python is picked up by cmake
# in cases where the system python is newer than the one used in these EasyConfigs
# See PR # 19119
configopts = '-DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python '

sanity_check_paths = {
'files': ['include/aoflagger.h', 'bin/aoflagger'],
'dirs': ['bin'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ dependencies = [
]

configopts = '-DBUILD_PYTHON=NO -DBUILD_PYTHON3=YES -Wno-dev -DCXX11="ON" -DDATA_DIR=%(installdir)s/data '
configopts += '-DUSE_OPENMP=ON -DUSE_HDF5=ON -DUSE_MPI=ON'
configopts += '-DUSE_OPENMP=ON -DUSE_HDF5=ON -DUSE_MPI=ON '
# Without this, the wrong (system) python is picked up by cmake
# in cases where the system python is newer than the one used in these EasyConfigs
# See PR # 19119
configopts += '-DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python '

sanity_check_paths = {
'files': ['lib/libcasa_casa.%s' % SHLIB_EXT, 'lib/libcasa_mirlib.%s' % SHLIB_EXT,
Expand Down
5 changes: 5 additions & 0 deletions easybuild/easyconfigs/d/DP3/DP3-6.0-foss-2022a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ dependencies = [
('AOFlagger', '3.4.0')
]

# Without this, the wrong (system) python is picked up by cmake
# in cases where the system python is newer than the one used in these EasyConfigs
# See PR # 19119
configopts = '-DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python '

sanity_check_paths = {
'files': ['include/include/dp3/base/DP3.h', 'bin/DP3'],
'dirs': ['bin'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ dependencies = [
('libxml2', '2.9.13'),
]

# Without this, the wrong (system) python is picked up by cmake
# in cases where the system python is newer than the one used in these EasyConfigs
# See PR # 19119
configopts = '-DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python '

sanity_check_paths = {
'files': ['include/EveryBeam/beamformer.h', 'lib/libeverybeam.so'],
'dirs': [],
Expand Down
5 changes: 5 additions & 0 deletions easybuild/easyconfigs/w/WSClean/WSClean-3.4-foss-2022a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ dependencies = [
('Python', '3.10.4'),
]

# Without this, the wrong (system) python is picked up by cmake
# in cases where the system python is newer than the one used in these EasyConfigs
# See PR # 19119
configopts = '-DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python '

sanity_check_paths = {
'files': ['include/wscleaninterface.h', 'bin/wsclean'],
'dirs': ['bin'],
Expand Down

0 comments on commit a8aca9a

Please sign in to comment.