mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
math/py-ipyopt: New port: Python interface to Ipopt
This commit is contained in:
parent
99cb092feb
commit
a25970a7d3
4 changed files with 38 additions and 0 deletions
|
@ -850,6 +850,7 @@
|
|||
SUBDIR += py-iminuit
|
||||
SUBDIR += py-intspan
|
||||
SUBDIR += py-iohexperimenter
|
||||
SUBDIR += py-ipyopt
|
||||
SUBDIR += py-jax
|
||||
SUBDIR += py-keras
|
||||
SUBDIR += py-keras-applications
|
||||
|
|
31
math/py-ipyopt/Makefile
Normal file
31
math/py-ipyopt/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
PORTNAME= ipyopt
|
||||
DISTVERSION= 0.12.2
|
||||
CATEGORIES= math python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= Python interface to Ipopt
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
PY_DEPENDS= ${PYNUMPY} \
|
||||
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
|
||||
BUILD_DEPENDS= ${PY_DEPENDS}
|
||||
LIB_DEPENDS= libipopt.so:math/ipopt
|
||||
RUN_DEPENDS= ${PY_DEPENDS}
|
||||
TEST_DEPENDS= py.test:devel/py-pytest@${PY_FLAVOR}
|
||||
|
||||
USES= compiler:c++17-lang pkgconfig python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
CXXFLAGS+= $(pkg-config --cflags ipopt)
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/${PORTNAME}.cpython-*.so
|
||||
|
||||
do-test: # tests fail: https://gitlab.com/g-braeunlich/ipyopt/-/issues/6
|
||||
@cd ${WRKSRC} && pytest
|
||||
|
||||
.include <bsd.port.mk>
|
3
math/py-ipyopt/distinfo
Normal file
3
math/py-ipyopt/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1645723676
|
||||
SHA256 (ipyopt-0.12.2.tar.gz) = bc92d0c83713fb81374aef6425db8af182c088eeae12233a274e56ee0bd2305c
|
||||
SIZE (ipyopt-0.12.2.tar.gz) = 35177
|
3
math/py-ipyopt/pkg-descr
Normal file
3
math/py-ipyopt/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
|||
Python interface for the interior point optimizer COIN-OR IPOpt.
|
||||
|
||||
WWW: https://gitlab.com/g-braeunlich/ipyopt
|
Loading…
Add table
Reference in a new issue