Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Adjusted recipe of pyOpt-1.2.0 package
Browse files Browse the repository at this point in the history
  • Loading branch information
mutirri committed Mar 21, 2016
1 parent 0dabe78 commit be99386
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 40 deletions.
20 changes: 0 additions & 20 deletions python/pyOpt/add_pyOpt_to_path_while_importing.patch

This file was deleted.

22 changes: 2 additions & 20 deletions python/pyOpt/bld.bat
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
File renamed without changes.
2 changes: 2 additions & 0 deletions python/pyOpt/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from pyOpt import Optimization
from pyOpt import SLSQP

0 comments on commit be99386

Please sign in to comment.