Skip to content

Commit

Permalink
Merge pull request OpenMDAO#60 from swryan/59_metis_dir
Browse files Browse the repository at this point in the history
Fixed bug: setenv METIS_DIR with string
  • Loading branch information
swryan authored Nov 28, 2023
2 parents 70cb977 + fb65453 commit 87c2ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.9'
__version__ = '2.0.10'
4 changes: 3 additions & 1 deletion build_pyoptsparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,9 @@ def install_metis_from_src():
if not allow_build('metis'):
return

os.environ['METIS_DIR'] = git_clone('metis')
metis_dir = git_clone('metis')
os.environ['METIS_DIR'] = metis_dir if isinstance(metis_dir, str) else metis_dir.name

run_cmd(['./get.Metis'])
os.environ['CFLAGS'] = '-Wno-implicit-function-declaration'
note("Running configure")
Expand Down

0 comments on commit 87c2ea6

Please sign in to comment.