Files
ports/math/py-PySCIPOpt/Makefile
T
Charlie Li d04d23ae37 python.mk: retire ${PYNUMPY}
With both math/py-numpy (2) and math/py-numpy1, the variable stopped
making sense. Also remove the upper version bound.
2026-04-03 16:52:43 -04:00

37 lines
966 B
Makefile

PORTNAME= PySCIPOpt
DISTVERSIONPREFIX= v
DISTVERSION= 5.6.0
PORTREVISION= 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
LIB_DEPENDS= libscip.so:math/SCIP
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy1>=1.16:math/py-numpy1@${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 5.6.0:
# Results (26.54s):
# 330 passed
# 11 xfailed
# 105 skipped
.include <bsd.port.mk>