|
49 | 49 | # "metis": "https://github.com/KarypisLab/METIS/archive/refs/tags/v5.1.1-DistDGL-v0.5.tar.gz", |
50 | 50 | # "metis": "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz", |
51 | 51 | "metis": "https://github.com/mfem/tpls/raw/gh-pages/metis-5.1.0.tar.gz", |
52 | | - "hypre": "https://github.com/hypre-space/hypre/archive/v2.27.0.tar.gz", |
| 52 | + "hypre": "https://github.com/hypre-space/hypre/archive/v2.28.0.tar.gz", |
53 | 53 | "libceed": "https://github.com/CEED/libCEED/archive/refs/tags/v0.11.0.tar.gz", |
54 | 54 | "gslib": "https://github.com/Nek5000/gslib/archive/refs/tags/v1.0.8.tar.gz"} |
55 | 55 |
|
|
58 | 58 | "gklib": "https://github.com/KarypisLab/GKlib", |
59 | 59 | "metis": "https://github.com/KarypisLab/METIS", } |
60 | 60 | repos_sha = { |
61 | | - "mfem": "2f6eb8838f8f5e8359abba0dd3434c8cc7147012", # version 4.5 with a few fix |
62 | | - #"mfem": "b7a4b61b5ce80b326a002aebccf7da7ad2432556", # version 4.5 |
| 61 | + # "mfem": "2f6eb8838f8f5e8359abba0dd3434c8cc7147012", |
| 62 | + "mfem": "00b2a0705f647e17a1d4ffcb289adca503f28d42", # version 4.5.2 |
63 | 63 | "gklib": "a7f8172703cf6e999dd0710eb279bba513da4fec", |
64 | 64 | "metis": "94c03a6e2d1860128c2d0675cbbb86ad4f261256", } |
65 | 65 |
|
@@ -244,7 +244,7 @@ def external_install_prefix(verbose=True): |
244 | 244 | os.makedirs(path) |
245 | 245 | path = os.path.join(path, 'mfem', 'external') |
246 | 246 | return path |
247 | | - |
| 247 | + |
248 | 248 | else: |
249 | 249 | # when prefix is given...let's borrow pip._internal to find the location ;D |
250 | 250 | import pip._internal.locations |
@@ -295,20 +295,28 @@ def make_call(command, target='', force_verbose=False): |
295 | 295 |
|
296 | 296 | if dry_run: |
297 | 297 | return |
298 | | - kwargs = {} |
| 298 | + kwargs = {'universal_newlines': True} |
299 | 299 |
|
300 | 300 | myverbose = verbose or force_verbose |
301 | 301 | if not myverbose: |
302 | 302 | kwargs['stdout'] = DEVNULL |
303 | 303 | kwargs['stderr'] = DEVNULL |
| 304 | + # else: |
| 305 | + # kwargs['stdout'] = subprocess.PIPE |
| 306 | + # kwargs['stderr'] = subprocess.STDOUT |
304 | 307 |
|
305 | | - try: |
306 | | - subprocess.check_call(command, **kwargs) |
307 | | - except subprocess.CalledProcessError: |
| 308 | + p = subprocess.Popen(command, **kwargs) |
| 309 | + p.communicate() |
| 310 | + if p.returncode != 0: |
308 | 311 | if target == '': |
309 | 312 | target = " ".join(command) |
310 | 313 | print("Failed when calling command: " + target) |
311 | | - raise |
| 314 | + raise subprocess.CalledProcessError(p.returncode, |
| 315 | + " ".join(command)) |
| 316 | + |
| 317 | + #subprocess.check_call(command, **kwargs) |
| 318 | + # except subprocess.CalledProcessError: |
| 319 | + # print(stdout) |
312 | 320 |
|
313 | 321 |
|
314 | 322 | def chdir(path): |
@@ -1089,6 +1097,8 @@ def update_header_exists(mfem_source): |
1089 | 1097 | mp_pool = Pool(max((multiprocessing.cpu_count() - 1, 1))) |
1090 | 1098 | with mp_pool: |
1091 | 1099 | mp_pool.map(make_call, commands) |
| 1100 | + # for c in commands: |
| 1101 | + # make_call(c) |
1092 | 1102 |
|
1093 | 1103 | os.chdir(pwd) |
1094 | 1104 |
|
@@ -1574,7 +1584,7 @@ def initialize_options(self): |
1574 | 1584 | self.with_suitesparse = False |
1575 | 1585 | self.suitesparse_prefix = '' |
1576 | 1586 |
|
1577 | | - self.with_lapack = False |
| 1587 | + self.with_lapack = False |
1578 | 1588 | self.blas_libraries = "" |
1579 | 1589 | self.lapack_libraries = "" |
1580 | 1590 |
|
|
0 commit comments