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

Adjusted recipe of pyOpt-1.2.0 package #645

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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