Skip to content

Commit 9cfe08d

Browse files
committed
add FADO to init script
1 parent b1c3a15 commit 9cfe08d

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

meson_scripts/init.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def init_submodules(
4848
own_mpp=True,
4949
own_cool=True,
5050
own_mel=True,
51+
own_fado=True,
5152
own_mlpcpp=True,
5253
):
5354

@@ -71,6 +72,8 @@ def init_submodules(
7172
github_repo_coolprop = "https://github.com/CoolProp/CoolProp"
7273
sha_version_mel = "46205ab019e5224559091375a6d71aabae6bc5b9"
7374
github_repo_mel = "https://github.com/pcarruscag/MEL"
75+
sha_version_fado = "ce7ee018e4e699af5028d69baa1939fea290e18a"
76+
github_repo_fado = "https://github.com/pcarruscag/FADO"
7477
sha_version_mlpcpp = "6865a58b22f21a92977839d9c93eae9522402f55"
7578
github_repo_mlpcpp = "https://github.com/EvertBunschoten/MLPCpp"
7679

@@ -82,6 +85,7 @@ def init_submodules(
8285
mpp_name = "Mutationpp"
8386
coolprop_name = "CoolProp"
8487
mel_name = "MEL"
88+
fado_name = "FADO"
8589
mlpcpp_name = "MLPCpp"
8690

8791
base_path = cur_dir + os.path.sep + "externals" + os.path.sep
@@ -91,6 +95,7 @@ def init_submodules(
9195
alt_name_meson = base_path + "meson"
9296
alt_name_ninja = base_path + "ninja"
9397
alt_name_mel = base_path + "mel"
98+
alt_name_mel = base_path + "fado"
9499
alt_name_mpp = cur_dir + os.path.sep + "subprojects" + os.path.sep + "Mutationpp"
95100
alt_name_coolprop = cur_dir + os.path.sep + "subprojects" + os.path.sep + "CoolProp"
96101
alt_name_mlpcpp = cur_dir + os.path.sep + "subprojects" + os.path.sep + "MLPCpp"
@@ -123,6 +128,8 @@ def init_submodules(
123128
submodule_status(alt_name_coolprop, sha_version_coolprop)
124129
if own_mel:
125130
submodule_status(alt_name_mel, sha_version_mel)
131+
if own_fado:
132+
submodule_status(alt_name_fado, sha_version_fado)
126133
if own_mlpcpp:
127134
submodule_status(alt_name_mlpcpp, sha_version_mlpcpp)
128135
# Otherwise download the zip file from git
@@ -157,6 +164,8 @@ def init_submodules(
157164
)
158165
if own_mel:
159166
download_module(mel_name, alt_name_mel, github_repo_mel, sha_version_mel)
167+
if own_fado:
168+
download_module(fado_name, alt_name_fado, github_repo_fado, sha_version_fado)
160169
if own_mlpcpp:
161170
download_module(
162171
mlpcpp_name, alt_name_mlpcpp, github_repo_mlpcpp, sha_version_mlpcpp

preconfigure.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def run(
8181
own_mpp=True,
8282
own_cool=True,
8383
own_mel=True,
84+
own_fado=True,
8485
own_mlpcpp=True,
8586
):
8687

@@ -94,6 +95,7 @@ def run(
9495
own_mpp=own_mpp,
9596
own_cool=own_cool,
9697
own_mel=own_mel,
98+
own_fado=own_fado,
9799
own_mlpcpp=own_mlpcpp,
98100
)
99101

@@ -137,6 +139,9 @@ def run(
137139
parser.add_argument(
138140
"--no-mel", help="do not download own copy of MEL", action="store_false"
139141
)
142+
parser.add_argument(
143+
"--no-fado", help="do not download own copy of FADO", action="store_false"
144+
)
140145
parser.add_argument(
141146
"--no-mlpcpp",
142147
help="do not download copy of MLpCpp",
@@ -152,5 +157,6 @@ def run(
152157
own_mpp=args.no_mpp,
153158
own_cool=args.no_coolprop,
154159
own_mel=args.no_mel,
160+
own_fado=args.no_fado,
155161
own_mlpcpp=args.no_mlpcpp,
156162
)

0 commit comments

Comments
 (0)