This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted recipe of pyOpt-1.2.0 package
- Loading branch information
Showing
5 changed files
with
4 additions
and
40 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,2 @@ | ||
swig.exe 2> NUL | ||
if %ERRORLEVEL%==9009 GOTO Swig_missing | ||
|
||
REM Copy any licenced source files the optimizers | ||
REM SET SNOPT_DIR="z:\snopt7" | ||
REM IF EXIST %SNOPT_DIR% ( xcopy %SNOPT_DIR%\src\* "%SRC_DIR%"\pyOpt\pySNOPT\source\* /S/Y/I/Q ) | ||
|
||
%SYS_PYTHON% setup.py install --compiler=mingw32 --prefix=%PREFIX% | ||
|
||
for %%x in (libgfortran-3.dll libquadmath-0.dll) do ( | ||
copy %SYS_PREFIX%\Scripts\%%x %SP_DIR%\pyopt\ | ||
if errorlevel 1 exit 1 | ||
) | ||
|
||
GOTO End | ||
|
||
:Swig_missing | ||
Echo "Swig.exe is missing in PATH" | ||
|
||
:End | ||
%PYTHON% setup.py install --compiler=mingw32 | ||
if errorlevel 1 exit 1 |
0
pyOpt/build.sh → python/pyOpt/build.sh
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from pyOpt import Optimization | ||
from pyOpt import SLSQP |