mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Removing MOAB and DAGMC source dirs to limit CI image size.
This commit is contained in:
parent
1da96b2fa6
commit
44c8b09214
1 changed files with 9 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ def install(omp=False, mpi=False, phdf5=False, cad=False):
|
|||
def mkcd(directory):
|
||||
os.mkdir(directory)
|
||||
os.chdir(directory)
|
||||
|
||||
|
||||
def build_dagmc():
|
||||
|
||||
current_dir = os.getcwd()
|
||||
|
|
@ -95,6 +95,9 @@ def build_dagmc():
|
|||
|
||||
# update LB_LIBRARY_PATH (so DAGMC can find MOAB)
|
||||
os.environ['LD_LIBRARY_PATH'] = moab_install_dir+"/lib" + ":" + ld_lib_path
|
||||
|
||||
# remove moab source dir
|
||||
os.rmdir(home_dir + "/MOAB/moab")
|
||||
|
||||
# build dagmc
|
||||
os.chdir(home_dir)
|
||||
|
|
@ -116,7 +119,11 @@ def build_dagmc():
|
|||
|
||||
# update LB_LIBRARY_PATH (so DAGMC can find MOAB)
|
||||
os.environ['LD_LIBRARY_PATH'] = dagmc_install_dir+"/lib" + ":" + ld_lib_path
|
||||
|
||||
|
||||
# remove dagmc source dir
|
||||
os.rmdir(home_dir + "/DAGMC/dagmc")
|
||||
|
||||
# return to original directory
|
||||
os.chdir(current_dir)
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue