diff --git a/build_pyoptsparse/build_pyoptsparse.py b/build_pyoptsparse/build_pyoptsparse.py index 94e10af..cf82b55 100755 --- a/build_pyoptsparse/build_pyoptsparse.py +++ b/build_pyoptsparse/build_pyoptsparse.py @@ -271,15 +271,7 @@ def noisy_deprecation(): print("Users wanting to integrate SNOPT into pyoptsparse should\n" "install pyoptsparse from conda-forge and then run") print(code("python -m build_pyoptsparse.build_snopt_module /path/to/snopt/src")) - print() - print("This will build the necessary SNOPT library for pyoptsparse.") - user_input = '' - while user_input.lower() not in {"y", "n"}: - user_input = input("Continue anyway? y/N") - if user_input == "": - user_input = "n" - if user_input == "n": - exit(1) + print("\nThis will build the necessary SNOPT library for pyoptsparse.\n") def announce(msg:str): """ diff --git a/pyproject.toml b/pyproject.toml index b6e23d7..248eea4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,10 @@ paropt = [ "mpi4py", ] +[project.scripts] +build-pyoptsparse = "build_pyoptsparse.build_pyoptsparse:perform_install" +build_pyoptsparse = "build_pyoptsparsebuild_pyoptsparse:perform_install" + [project.urls] Homepage = "http://openmdao.org"