Skip to content

Instantly share code, notes, and snippets.

@gnowzil
gnowzil / setup.py
Created March 30, 2020 17:34
pyOptSparse SNOPT precompiled library setup
#!/usr/bin/env python
# This is a modified version of pyoptsparse/pyoptsparse/pySNOPT/setup.py
# The modifications allow the user to use pyOpt with SNOPT precompiled libraries.
#
# Instructions:
# 1. Replace pyoptsparse/pyoptsparse/pySNOPT/setup.py with this file.
# 2. Modify line 39 so that snopt7_path is the actual path to the location of the
# precompiled SNOPT library (libsnopt7.*).
# 3. Make sure to add the location of the library to DYLD_LIBRARY_PATH (for macOS)