Files
ports/math/py-PySCIPOpt/Makefile
T
Charlie Li 06a08e69f3 python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
2025-03-07 23:05:21 -05:00

34 lines
960 B
Makefile

PORTNAME= PySCIPOpt
DISTVERSIONPREFIX= v
DISTVERSION= 5.4.1
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
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython3>0:lang/cython3
LIB_DEPENDS= libscip.so:math/SCIP
RUN_DEPENDS= ${PYNUMPY}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}networkx>0:math/py-networkx@${PY_FLAVOR}
USES= localbase python
USE_PYTHON= distutils autoplist 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.3.0: 310 passed, 106 skipped, 11 xfailed, 4 warnings in 127.77s (0:02:07)
.include <bsd.port.mk>