freebsd-ports/devel/py-setuptools/Makefile
Martin Wilke e9695119cd - Update to 40.0.0
https://github.com/pypa/setuptools/compare/v40.0.0...master

PR:		229642
Submitted by:	miwi
Exp-run by:	antoine
Sponsored by:	iXsystems Inc.
Differential Revision:	https://reviews.freebsd.org/D16197
2018-07-17 03:36:05 +00:00

47 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= setuptools
PORTVERSION= 40.0.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR= python
MAINTAINER= python@FreeBSD.org
COMMENT= Python packages installer
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
NO_ARCH= yes
USES= python zip
USE_PYTHON= autoplist concurrent distutils allflavors
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 <bsd.port.pre.mk>
.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
post-install:
${INSTALL_DATA} ${FILESDIR}/easy-install.pth.dist ${STAGEDIR}${PYTHON_SITELIBDIR}/
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>