mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
devel/py-setuptools58: convert to PEP-517
easy_install has long been deprecated and unused, remove.
This commit is contained in:
parent
b0a748bd0b
commit
1c796243ae
3 changed files with 7 additions and 33 deletions
|
@ -1,5 +1,6 @@
|
||||||
PORTNAME= setuptools
|
PORTNAME= setuptools
|
||||||
PORTVERSION= 58.5.3
|
PORTVERSION= 58.5.3
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= devel python
|
CATEGORIES= devel python
|
||||||
MASTER_SITES= PYPI
|
MASTER_SITES= PYPI
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
@ -16,33 +17,16 @@ WWW= https://pypi.org/project/setuptools/
|
||||||
LICENSE= MIT
|
LICENSE= MIT
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
USES= cpe python:3.7+
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
||||||
USE_PYTHON= allflavors autoplist concurrent distutils
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
||||||
|
|
||||||
|
USES= cpe python
|
||||||
|
USE_PYTHON= allflavors autoplist concurrent pep517 pytest
|
||||||
|
|
||||||
CPE_VENDOR= python
|
CPE_VENDOR= python
|
||||||
|
|
||||||
MAKE_ENV+= SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
|
|
||||||
NO_ARCH= yes
|
NO_ARCH= yes
|
||||||
PYDISTUTILS_SETUP= ${PYSETUP}
|
|
||||||
|
|
||||||
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}
|
|
||||||
# pkg install -y py38-pytest py38-mock py38-pytest-fixture-config py38-pytest-virtualenv py38-paver
|
# pkg install -y py38-pytest py38-mock py38-pytest-fixture-config py38-pytest-virtualenv py38-paver
|
||||||
|
|
||||||
post-install:
|
.include <bsd.port.mk>
|
||||||
${INSTALL_DATA} ${FILESDIR}/easy-install.pth.dist ${STAGEDIR}${PYTHON_SITELIBDIR}/
|
|
||||||
|
|
||||||
do-test:
|
|
||||||
cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
import sys; sys.__plen = len(sys.path)
|
|
||||||
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)
|
|
|
@ -1,8 +0,0 @@
|
||||||
[
|
|
||||||
{ type: install
|
|
||||||
message: <<EOM
|
|
||||||
Only %%PREFIX%%/bin/easy_install-%%PYTHON_VER%% script has been installed
|
|
||||||
since Python %%PYTHON_VER%% is not the default Python version.
|
|
||||||
EOM
|
|
||||||
}
|
|
||||||
]
|
|
Loading…
Add table
Reference in a new issue