Skip to content

OpenMDAO/build_pyoptsparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build_pyoptsparse

This script package is intended to help get pyoptsparse working more easily with the optional SNOPT dependency.

Originally, this script was written to overcome the complexities of building pyOptSparse and IPOPT, but improvements to pyoptsparse and the reliance on cyipopt eliminated this need.

As a result, this package no longer supports full compilation of pyoptsparse. Instead, users should install pyoptsparse and cyipopt from conda-forge, which will provide a working implementation of IPOPT.

Users who still need SNOPT integration should take the following steps:

  1. Activate your virtual environment.
  2. Install pyoptsparse and cyipopt from conda-forge.
  3. Install this package. It currently must be installed directly from github:
python -m pip install git+https://github.com/OpenMDAO/build_pyoptsparse.git
  1. Build and install the SNOPT module for pyoptsparse using your licensed SNOPT source files or dynamic library.
python -m build_pyoptsparse.snopt_module /path/to/snopt/fortran/src

or

python -m build_pyoptsparse.snopt_module --snopt-lib /path/to/libsnopt7.so

For now, the existing python -m build_pyoptsparse command remains but issues a noisy deprecation warning by default, with an option to bypass it using python -m build_pyoptsparse --ignore-dep.

About

python script to build/install pyoptsparse with IPOPT (and optionally SNOPT)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages