View | Details | Raw Unified | Return to bug 256173 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/Uses/python.mk (-1 / +7 lines)
Lines 554-563 UNIQUE_FIND_SUFFIX_MAN_FILES+= ${_UNIQUE_FIND_SUFFIX_FILES} | \ Link Here
554
554
555
_CURRENTPORT:=	${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
555
_CURRENTPORT:=	${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
556
.if defined(_PYTHON_FEATURE_DISTUTILS) && \
556
.if defined(_PYTHON_FEATURE_DISTUTILS) && \
557
	${_CURRENTPORT} != ${PYTHON_PKGNAMEPREFIX}setuptools
557
	${_CURRENTPORT} != ${PYTHON_PKGNAMEPREFIX}setuptools &&\
558
	${_CURRENTPORT} != ${PYTHON_PKGNAMEPREFIX}setuptools44
559
.if ${PYTHON_VER} == 2.7
560
BUILD_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools44>0:devel/py-setuptools44@${PY_FLAVOR}
561
RUN_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools44>0:devel/py-setuptools44@${PY_FLAVOR}
562
.else
558
BUILD_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
563
BUILD_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
559
RUN_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
564
RUN_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
560
.endif
565
.endif
566
.endif
561
567
562
# distutils support
568
# distutils support
563
PYSETUP?=		setup.py
569
PYSETUP?=		setup.py
(-)devel/Makefile (+1 lines)
Lines 5125-5130 Link Here
5125
    SUBDIR += py-setuptools
5125
    SUBDIR += py-setuptools
5126
    SUBDIR += py-setuptools-git
5126
    SUBDIR += py-setuptools-git
5127
    SUBDIR += py-setuptools-pkg
5127
    SUBDIR += py-setuptools-pkg
5128
    SUBDIR += py-setuptools44
5128
    SUBDIR += py-setuptools_hg
5129
    SUBDIR += py-setuptools_hg
5129
    SUBDIR += py-setuptools_scm
5130
    SUBDIR += py-setuptools_scm
5130
    SUBDIR += py-setuptools_scm_git_archive
5131
    SUBDIR += py-setuptools_scm_git_archive
(-)devel/py-setuptools/Makefile (-3 / +2 lines)
Lines 1-6 Link Here
1
PORTNAME=	setuptools
1
PORTNAME=	setuptools
2
PORTVERSION=	44.0.0
2
PORTVERSION=	57.0.0
3
PORTREVISION=	1
4
CATEGORIES=	devel python
3
CATEGORIES=	devel python
5
MASTER_SITES=	CHEESESHOP
4
MASTER_SITES=	CHEESESHOP
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 15-21 COMMENT= Python packages installer Link Here
15
LICENSE=	MIT
14
LICENSE=	MIT
16
LICENSE_FILE=	${WRKSRC}/LICENSE
15
LICENSE_FILE=	${WRKSRC}/LICENSE
17
16
18
USES=		python:2.7+ zip
17
USES=		python:3.6+
19
USE_PYTHON=	allflavors autoplist concurrent distutils
18
USE_PYTHON=	allflavors autoplist concurrent distutils
20
19
21
MAKE_ENV+=	SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
20
MAKE_ENV+=	SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
(-)devel/py-setuptools/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1578923982
1
TIMESTAMP = 1622043161
2
SHA256 (python/setuptools-44.0.0.zip) = e5baf7723e5bb8382fc146e33032b241efc63314211a3a120aaa55d62d2bb008
2
SHA256 (python/setuptools-57.0.0.tar.gz) = 401cbf33a7bf817d08014d51560fc003b895c4cdc1a5b521ad2969e928a07535
3
SIZE (python/setuptools-44.0.0.zip) = 858893
3
SIZE (python/setuptools-57.0.0.tar.gz) = 2144749
(-)devel/py-setuptools44/Makefile (+49 lines)
Added Link Here
1
PORTNAME=	setuptools
2
PORTVERSION=	44.0.0
3
PORTREVISION=	1
4
CATEGORIES=	devel python
5
MASTER_SITES=	CHEESESHOP
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMESUFFIX=	44
8
DIST_SUBDIR=	python
9
10
# note: before committing to this port, contact portmgr to arrange for an
11
# experimental ports run.  Untested commits may be backed out at portmgr's
12
# discretion.
13
MAINTAINER=	python@FreeBSD.org
14
COMMENT=	Python packages installer
15
16
LICENSE=	MIT
17
LICENSE_FILE=	${WRKSRC}/LICENSE
18
19
USES=		python:2.7 zip
20
USE_PYTHON=	allflavors autoplist concurrent distutils
21
22
MAKE_ENV+=	SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
23
NO_ARCH=	yes
24
PYDISTUTILS_SETUP=	${PYSETUP}
25
26
PLIST_FILES=	"@sample %%PYTHON_SITELIBDIR%%/easy-install.pth.dist %%PYTHON_SITELIBDIR%%/easy-install.pth"
27
28
.include <bsd.port.pre.mk>
29
30
.if ${FLAVOR} != ${FLAVORS:[1]}
31
SUB_FILES+=	pkg-message
32
SUB_LIST+=	PYTHON_VER=${PYTHON_VER}
33
.endif
34
35
# These create dependency loops in redports/poudriere, because setuptools
36
# is currently an explicit BUILD & RUN dependency in Uses/python.mk.
37
#TEST_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
38
#.if ${PYTHON_REL} < 30300
39
#TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
40
#.endif
41
# pkg install -y py36-pytest py36-mock py36-pytest-fixture-config py36-pytest-virtualenv py36-paver
42
43
post-install:
44
	${INSTALL_DATA} ${FILESDIR}/easy-install.pth.dist ${STAGEDIR}${PYTHON_SITELIBDIR}/
45
46
do-test:
47
	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
48
49
.include <bsd.port.post.mk>
(-)devel/py-setuptools44/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1578923982
2
SHA256 (python/setuptools-44.0.0.zip) = e5baf7723e5bb8382fc146e33032b241efc63314211a3a120aaa55d62d2bb008
3
SIZE (python/setuptools-44.0.0.zip) = 858893
(-)devel/py-setuptools44/files/easy-install.pth.dist (+2 lines)
Added Link Here
1
import sys; sys.__plen = len(sys.path)
2
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
(-)devel/py-setuptools44/files/pkg-message.in (+8 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
  Only %%PREFIX%%/bin/easy_install-%%PYTHON_VER%% script has been installed
5
  since Python %%PYTHON_VER%% is not the default Python version.
6
EOM
7
}
8
]
(-)devel/py-setuptools44/pkg-descr (+10 lines)
Added Link Here
1
Setuptools is a fully-featured, actively-maintained, and stable library
2
designed to facilitate packaging Python projects, where packaging includes:
3
 - Python package and module definitions
4
 - Distribution package metadata
5
 - Test hooks
6
 - Project installation
7
 - Platform-specific details
8
 - Python 3 support
9
10
WWW: https://pypi.org/project/setuptools/

Return to bug 256173