Lines 1-11
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= setuptools |
3 |
PORTNAME= setuptools |
4 |
PORTVERSION= 32.1.0 |
4 |
PORTVERSION= 34.3.1 |
5 |
CATEGORIES= devel python |
5 |
CATEGORIES= devel python |
6 |
MASTER_SITES= CHEESESHOP |
6 |
MASTER_SITES= https://pypi.python.org/packages/49/09/68b43c68492a9d437c137892d11427ac45a1497812c8a8ce2cd17649a27c/ |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
|
|
8 |
DIST_SUBDIR= python |
9 |
|
7 |
|
10 |
MAINTAINER= python@FreeBSD.org |
8 |
MAINTAINER= python@FreeBSD.org |
11 |
COMMENT= Python packages installer |
9 |
COMMENT= Python packages installer |
Lines 12-26
Link Here
|
12 |
|
10 |
|
13 |
LICENSE= PSFL |
11 |
LICENSE= PSFL |
14 |
|
12 |
|
15 |
NO_ARCH= yes |
13 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.0:devel/${PYTHON_PKGNAMEPREFIX}appdirs \ |
16 |
USES= python |
14 |
${PYTHON_PKGNAMEPREFIX}packaging>=16.8:devel/${PYTHON_PKGNAMEPREFIX}packaging \ |
17 |
USE_PYTHON= autoplist concurrent distutils |
15 |
${PYTHON_PKGNAMEPREFIX}six>=1.6.0:devel/${PYTHON_PKGNAMEPREFIX}six |
18 |
|
16 |
|
19 |
PYDISTUTILS_SETUP= ${PYSETUP} |
17 |
USES= python wheel:noautoplist |
20 |
|
18 |
|
21 |
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}distribute-[0-9]* |
|
|
22 |
MAKE_ENV+= SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
23 |
|
24 |
PLIST_FILES= "@sample %%PYTHON_SITELIBDIR%%/easy-install.pth.dist %%PYTHON_SITELIBDIR%%/easy-install.pth" |
19 |
PLIST_FILES= "@sample %%PYTHON_SITELIBDIR%%/easy-install.pth.dist %%PYTHON_SITELIBDIR%%/easy-install.pth" |
25 |
|
20 |
|
26 |
.include <bsd.port.pre.mk> |
21 |
.include <bsd.port.pre.mk> |
Lines 30-46
Link Here
|
30 |
SUB_LIST+= PYTHON_VER=${PYTHON_VER} |
25 |
SUB_LIST+= PYTHON_VER=${PYTHON_VER} |
31 |
.endif |
26 |
.endif |
32 |
|
27 |
|
33 |
# These create dependency loops in redports/poudriere, because setuptools |
|
|
34 |
# is currently an explicit BUILD & RUN dependency in Uses/python.mk. |
35 |
#TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest |
36 |
#.if ${PYTHON_REL} < 3300 |
37 |
#TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock |
38 |
#.endif |
39 |
|
40 |
post-install: |
28 |
post-install: |
|
|
29 |
.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} |
30 |
cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf easy_install-${PYTHON_VER} easy-install |
31 |
.endif |
41 |
${INSTALL_DATA} ${FILESDIR}/easy-install.pth.dist ${STAGEDIR}${PYTHON_SITELIBDIR}/ |
32 |
${INSTALL_DATA} ${FILESDIR}/easy-install.pth.dist ${STAGEDIR}${PYTHON_SITELIBDIR}/ |
|
|
33 |
${FIND} -s ${STAGEDIR} ! -type d | ${SED} 's,${STAGEDIR}${PREFIX}/,, ; /easy-install.pth.dist/d' >> ${TMPPLIST} |
42 |
|
34 |
|
43 |
do-test: |
|
|
44 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
45 |
|
46 |
.include <bsd.port.post.mk> |
35 |
.include <bsd.port.post.mk> |