Uses/python.mk: revert unapproved feature addition (and consumers)
Change proposal was in discussion with open questions and additional documented design requirement [0] for submitter to review and provide feedback on, which was not provided. Submitter (and anyone else) is welcome to work with python@ to produce an appropriately reviewed feature. [0] https://wiki.freebsd.org/Python/PEP-517 With hat: python (vishwin, koobs) PR: 255722, 265660, 265692, 265693 Approved by: fluffy (mentor)
This commit is contained in:
@@ -103,9 +103,6 @@
|
||||
# distutils - Use distutils as do-configure, do-build and
|
||||
# do-install targets. implies flavors.
|
||||
#
|
||||
# build - Use build/installer as do-build and
|
||||
# do-install targets. implies flavors.
|
||||
#
|
||||
# autoplist - Automatically generates the packaging list for a
|
||||
# port that uses distutils when defined.
|
||||
# requires: distutils
|
||||
@@ -284,7 +281,7 @@ _PYTHON_BASECMD= ${LOCALBASE}/bin/python
|
||||
_PYTHON_RELPORTDIR= lang/python
|
||||
|
||||
# List all valid USE_PYTHON features here
|
||||
_VALID_PYTHON_FEATURES= allflavors autoplist build concurrent cython cython_run \
|
||||
_VALID_PYTHON_FEATURES= allflavors autoplist concurrent cython cython_run \
|
||||
distutils flavors noegginfo noflavors nose nose2 \
|
||||
optsuffix py3kplist pytest pytest4 pythonprefix \
|
||||
unittest unittest2
|
||||
@@ -312,12 +309,6 @@ IGNORE= uses either USE_PYTHON=pytest or USE_PYTHON=pytest4, not both of them
|
||||
_PYTHON_FEATURE_FLAVORS= yes
|
||||
. endif
|
||||
|
||||
# build automatically generates flavors depending on the supported
|
||||
# versions.
|
||||
. if defined(_PYTHON_FEATURE_BUILD)
|
||||
_PYTHON_FEATURE_FLAVORS= yes
|
||||
. endif
|
||||
|
||||
. if defined(_PYTHON_FEATURE_NOFLAVORS)
|
||||
.undef _PYTHON_FEATURE_FLAVORS
|
||||
. endif
|
||||
@@ -604,26 +595,6 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${P
|
||||
. endif
|
||||
. endif
|
||||
|
||||
. if defined(_PYTHON_FEATURE_BUILD)
|
||||
. if ${PYTHON_VER} == 2.7
|
||||
DEV_ERROR+= "USES=python:2.7 is incompatible with USE_PYTHON=build"
|
||||
. endif
|
||||
. if defined(_PYTHON_FEATURE_DISTUTILS)
|
||||
DEV_ERROR+= "USE_PYTHON=distutils is incompatible with USE_PYTHON=build"
|
||||
. endif
|
||||
. if defined(_PYTHON_FEATURE_AUTOPLIST)
|
||||
DEV_ERROR+= "USE_PYTHON=autoplist is incompatible with USE_PYTHON=build"
|
||||
. endif
|
||||
. if defined(_PYTHON_FEATURE_PY3KPLIST)
|
||||
DEV_ERROR+= "USE_PYTHON=py3kplist is incompatible with USE_PYTHON=build"
|
||||
. endif
|
||||
. if defined(_PYTHON_FEATURE_NOEGGINFO)
|
||||
DEV_ERROR+= "USE_PYTHON=noegginfo is incompatible with USE_PYTHON=build"
|
||||
. endif
|
||||
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}build>0:devel/py-build@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}installer>0:devel/py-installer@${PY_FLAVOR}
|
||||
. endif
|
||||
|
||||
# distutils support
|
||||
PYSETUP?= setup.py
|
||||
PYDISTUTILS_SETUP?= -c \
|
||||
@@ -819,23 +790,6 @@ do-install:
|
||||
. endif
|
||||
. endif # defined(_PYTHON_FEATURE_DISTUTILS)
|
||||
|
||||
. if defined(_PYTHON_FEATURE_BUILD)
|
||||
. if !target(do-configure)
|
||||
do-configure:
|
||||
@${DO_NADA}
|
||||
. endif
|
||||
|
||||
. if !target(do-build)
|
||||
do-build:
|
||||
@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} -m build --wheel --no-isolation --outdir ${WRKDIR}
|
||||
. endif
|
||||
|
||||
. if !target(do-install)
|
||||
do-install:
|
||||
@cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} -m installer ${WRKDIR}/*.whl --destdir ${STAGEDIR}
|
||||
. endif
|
||||
. endif # defined(_PYTHON_FEATURE_BUILD)
|
||||
|
||||
. if defined(_PYTHON_FEATURE_NOSE)
|
||||
. if !target(do-test)
|
||||
do-test:
|
||||
|
||||
Reference in New Issue
Block a user