mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 18:41:17 +02:00
create bsd12 branch
This commit is contained in:
45
python/py-setuptools/Makefile
Normal file
45
python/py-setuptools/Makefile
Normal file
@@ -0,0 +1,45 @@
|
||||
# $FreeBSD: head/devel/py-setuptools/Makefile 492575 2019-02-10 00:08:37Z sunpoet $
|
||||
|
||||
PORTNAME= setuptools
|
||||
PORTVERSION= 40.8.0
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DIST_SUBDIR= python
|
||||
|
||||
MAINTAINER= python@FreeBSD.org
|
||||
COMMENT= Python packages installer
|
||||
|
||||
|
||||
NO_ARCH= yes
|
||||
USES= python zip
|
||||
USE_PYTHON= autoplist concurrent distutils allflavors
|
||||
|
||||
PYDISTUTILS_SETUP= ${PYSETUP}
|
||||
|
||||
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}distribute-[0-9]*@${PY_FLAVOR}
|
||||
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}@${PY_FLAVOR}
|
||||
#.if ${PYTHON_REL} < 3300
|
||||
#TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}@${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>
|
||||
3
python/py-setuptools/distinfo
Normal file
3
python/py-setuptools/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1549473370
|
||||
SHA256 (python/setuptools-40.8.0.zip) = 6e4eec90337e849ade7103723b9a99631c1f0d19990d6e8412dc42f5ae8b304d
|
||||
SIZE (python/setuptools-40.8.0.zip) = 845071
|
||||
2
python/py-setuptools/files/easy-install.pth.dist
Normal file
2
python/py-setuptools/files/easy-install.pth.dist
Normal file
@@ -0,0 +1,2 @@
|
||||
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)
|
||||
7
python/py-setuptools/files/pkg-message.in
Normal file
7
python/py-setuptools/files/pkg-message.in
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
*******************************************************************
|
||||
|
||||
Only %%PREFIX%%/bin/easy_install-%%PYTHON_VER%% script has been installed
|
||||
since Python %%PYTHON_VER%% is not the default Python version.
|
||||
|
||||
*******************************************************************
|
||||
10
python/py-setuptools/pkg-descr
Normal file
10
python/py-setuptools/pkg-descr
Normal file
@@ -0,0 +1,10 @@
|
||||
Setuptools is a fully-featured, actively-maintained, and stable library
|
||||
designed to facilitate packaging Python projects, where packaging includes:
|
||||
- Python package and module definitions
|
||||
- Distribution package metadata
|
||||
- Test hooks
|
||||
- Project installation
|
||||
- Platform-specific details
|
||||
- Python 3 support
|
||||
|
||||
WWW: https://pypi.org/project/setuptools/
|
||||
Reference in New Issue
Block a user