| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/math/py-faiss/ |
Upload File : |
PORTNAME= faiss
DISTVERSIONPREFIX= v
DISTVERSION= 1.7.2
CATEGORIES= math
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Library for efficient similarity search & clustering of dense vectors
WWW= https://github.com/facebookresearch/faiss
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/../../LICENSE
BROKEN_i386= clang crashes, see bug#261580
PY_DEPENDS= ${PYNUMPY}
BUILD_DEPENDS= swig:devel/swig \
${PY_DEPENDS}
LIB_DEPENDS= libfaiss.so:math/faiss
RUN_DEPENDS= ${PY_DEPENDS}
USES= cmake compiler:c++11-lang localbase python
USE_GITHUB= yes
GH_ACCOUNT= facebookresearch
WRKSRC_SUBDIR= faiss/python
PLIST_FILES= \
${PYTHON_SITELIBDIR}/${PORTNAME}/_swigfaiss.so \
${PYTHON_SITELIBDIR}/${PORTNAME}/__init__.py \
${PYTHON_SITELIBDIR}/${PORTNAME}/loader.py \
${PYTHON_SITELIBDIR}/${PORTNAME}/swigfaiss.py
do-install: # see https://github.com/facebookresearch/faiss/issues/2194
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
${INSTALL_LIB} ${BUILD_WRKSRC}/_swigfaiss.so ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
.for f in __init__.py loader.py swigfaiss.py
${INSTALL_DATA} ${BUILD_WRKSRC}/${f} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
.endfor
do-test: install
@${PYTHON_CMD} ${FILESDIR}/test.py
.include <bsd.port.mk>