The logic in USES=python will automatically convert this to 3.8+ by itself. Adjust two ports that only had Python 3.7 mentioned but build fine on Python 3.8 too. finance/quickfix: mark BROKEN with PYTHON libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option] QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found ^~~~~~~~~~ 1 warning and 1 error generated. Reviewed by: portmgr, vishwin, yuri Differential Revision: <https://reviews.freebsd.org/D40568>
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
PORTNAME= setuptools
|
|
PORTVERSION= 44.1.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
PKGNAMESUFFIX= 44
|
|
DIST_SUBDIR= python
|
|
|
|
# note: before committing to this port, contact portmgr to arrange for an
|
|
# experimental ports run. Untested commits may be backed out at portmgr's
|
|
# discretion.
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= Python packages installer
|
|
WWW= https://pypi.org/project/setuptools/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= cpe python:2.7 zip
|
|
USE_PYTHON= allflavors autoplist concurrent distutils
|
|
|
|
CPE_VENDOR= python
|
|
|
|
MAKE_ENV+= SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
|
|
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}
|
|
#.if ${PYTHON_REL} < 30000
|
|
#TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
|
|
#.endif
|
|
# pkg install -y py38-pytest py38-mock py38-pytest-fixture-config py38-pytest-virtualenv py38-paver
|
|
|
|
post-install:
|
|
${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>
|