diff --git a/devel/py-setuptools/Makefile b/devel/py-setuptools/Makefile index 203522b68201..40b38a886356 100644 --- a/devel/py-setuptools/Makefile +++ b/devel/py-setuptools/Makefile @@ -1,49 +1,50 @@ PORTNAME= setuptools PORTVERSION= 44.0.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DIST_SUBDIR= python # note: before committing to this port, contact portmgr to arrange for an # experimental ports run. Untested commits may be backed out at portmgr's # discretion. MAINTAINER= python@FreeBSD.org COMMENT= Python packages installer LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE NO_ARCH= yes USES= python:2.7+ zip USE_PYTHON= allflavors autoplist concurrent distutils PYDISTUTILS_SETUP= ${PYSETUP} CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}distribute-[0-9]* MAKE_ENV+= SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 PLIST_FILES= "@sample %%PYTHON_SITELIBDIR%%/easy-install.pth.dist %%PYTHON_SITELIBDIR%%/easy-install.pth" .include .if ${FLAVOR} != ${FLAVORS:[1]} SUB_FILES+= pkg-message SUB_LIST+= PYTHON_VER=${PYTHON_VER} .endif # These create dependency loops in redports/poudriere, because setuptools # is currently an explicit BUILD & RUN dependency in Uses/python.mk. #TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} #.if ${PYTHON_REL} < 3300 #TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} #.endif # pkg install -y py36-pytest py36-mock py36-pytest-fixture-config py36-pytest-virtualenv py36-paver post-install: ${INSTALL_DATA} ${FILESDIR}/easy-install.pth.dist ${STAGEDIR}${PYTHON_SITELIBDIR}/ do-test: cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs .include diff --git a/lang/cython/Makefile b/lang/cython/Makefile index 4188777db12b..bf7f2e6711b5 100644 --- a/lang/cython/Makefile +++ b/lang/cython/Makefile @@ -1,23 +1,24 @@ # Created by: Wen Heping PORTNAME= cython PORTVERSION= 0.29.21 +PORTREVISION= 1 CATEGORIES= lang python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Cython-${PORTVERSION} MAINTAINER= vmagerya@gmail.com COMMENT= Compiler for Writing C Extensions for the Python Language LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt USES= compiler:c11 python:2.7+ USE_PYTHON= allflavors autoplist concurrent distutils post-install: ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Cython \ -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile index 78ab89afe8ab..19ce0a36fd7d 100644 --- a/math/py-numpy/Makefile +++ b/math/py-numpy/Makefile @@ -1,76 +1,77 @@ # Created by: Tony Maher PORTNAME= numpy PORTVERSION= 1.16.6 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= math python MASTER_SITES= CHEESESHOP \ https://docs.scipy.org/doc/${PORTNAME}-${PORTVERSION}/:doc PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ ${PORTNAME}-ref-${PORTVERSION:R}.1.pdf:doc \ ${PORTNAME}-user-${PORTVERSION:R}.1.pdf:doc EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= python@FreeBSD.org COMMENT= The New Numeric Extension to Python LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} USES= compiler:c11 fortran python:3.6+ zip USE_PYTHON= allflavors autoplist concurrent cython distutils GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so | ${SED} -e s/libgfortran.so// LDFLAGS+= -shared PYDISTUTILS_BUILDARGS= --fcompiler=gnu95 PYDISTUTILS_CONFIGUREARGS= --fcompiler=gnu95 PORTDOCS= * OPTIONS_DEFINE= DOCS SUITESPARSE OPTIONS_SINGLE= BLASLIB OPTIONS_SINGLE_BLASLIB= ATLAS NETLIB OPENBLAS OPTIONS_DEFAULT= OPENBLAS SUITESPARSE SUITESPARSE_DESC= Use AMD and UMFPACK in SuiteSparse ATLAS_USES= blaslapack:atlas ATLAS_VARS= BLASLIBS="ptf77blas, ptcblas" BLASNAME=atlas LAPACKLIBS=alpack LIBRARIES=atlas_libs NETLIB_USES= blaslapack:netlib NETLIB_VARS= BLASLIBS="blas, cblas" BLASNAME=atlas LAPACKLIBS=lapack LIBRARIES=atlas_libs NETLIB_LIB_DEPENDS= libcblas.so:math/cblas OPENBLAS_USES= blaslapack:openblas OPENBLAS_VARS= BLASLIBS="openblas, gfortran" BLASNAME=openblas LAPACKLIBS="openblas, gfortran" LIBRARIES=libraries SUITESPARSE_LIB_DEPENDS=libumfpack.so:math/suitesparse post-extract: @${TOUCH} ${WRKSRC}/numpy/f2py/tests/src/temp post-patch: @${REINPLACE_CMD} -e 's|%%FC%%|${FC}|' ${WRKSRC}/numpy/distutils/fcompiler/gnu.py @${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg post-patch-SUITESPARSE-off: @${REINPLACE_CMD} -e 's|:%%LOCALBASE%%/include/suitesparse||' ${WRKSRC}/site.cfg pre-configure: ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ -e 's|%%BLASLIBS%%|${BLASLIBS}|; s|%%BLASNAME%%|${BLASNAME}|' \ -e 's|%%LAPACKLIBS%%|${LAPACKLIBS}|; s|%%LIBRARIES%%|${LIBRARIES}|' \ ${WRKSRC}/site.cfg @${REINPLACE_CMD} -e "s|%%GCCLIBDIR%%|$$(${GCCLIBDIR_CMDS})|" ${WRKSRC}/site.cfg ${WRKSRC}/numpy/distutils/system_info.py post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' | ${XARGS} ${STRIP_CMD} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-ref-${PORTVERSION:R}.1.pdf ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-user-${PORTVERSION:R}.1.pdf ${STAGEDIR}${DOCSDIR} do-test: @cd ${WRKSRC} && ${PYTHON_CMD} runtests.py .include