Files
ports/math/py-PySCIPOpt/Makefile
T
2026-05-17 01:52:34 -07:00

33 lines
1008 B
Makefile

PORTNAME= PySCIPOpt
DISTVERSIONPREFIX= v
DISTVERSION= 6.2.1
CATEGORIES= math python
#MASTER_SITES= PYPI # no tests
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python interface and modeling environment for SCIP
WWW= https://github.com/SCIP-Interfaces/PySCIPOpt
LICENSE= MIT
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
LIB_DEPENDS= libscip.so:math/SCIP
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}networkx>0:math/py-networkx@${PY_FLAVOR}
USES= localbase python
USE_PYTHON= autoplist cython distutils pytest # 1 test fails, see https://github.com/scipopt/PySCIPOpt/issues/840
USE_GITHUB= yes
GH_ACCOUNT= scipopt
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pyscipopt/scip*.so
# tests as of 6.1.0: 418 passed, 109 skipped, 11 xfailed, 12 warnings in 24.22s
.include <bsd.port.mk>