Lines 103-108
Link Here
|
103 |
# distutils - Use distutils as do-configure, do-build and |
103 |
# distutils - Use distutils as do-configure, do-build and |
104 |
# do-install targets. implies flavors. |
104 |
# do-install targets. implies flavors. |
105 |
# |
105 |
# |
|
|
106 |
# build - Use build as do-build and |
107 |
# do-install targets. implies flavors. |
108 |
# |
106 |
# autoplist - Automatically generates the packaging list for a |
109 |
# autoplist - Automatically generates the packaging list for a |
107 |
# port that uses distutils when defined. |
110 |
# port that uses distutils when defined. |
108 |
# requires: distutils |
111 |
# requires: distutils |
Lines 281-287
_PYTHON_BASECMD= ${LOCALBASE}/bin/python
Link Here
|
281 |
_PYTHON_RELPORTDIR= lang/python |
284 |
_PYTHON_RELPORTDIR= lang/python |
282 |
|
285 |
|
283 |
# List all valid USE_PYTHON features here |
286 |
# List all valid USE_PYTHON features here |
284 |
_VALID_PYTHON_FEATURES= allflavors autoplist concurrent cython cython_run \ |
287 |
_VALID_PYTHON_FEATURES= allflavors autoplist build concurrent cython cython_run \ |
285 |
distutils flavors noegginfo noflavors nose nose2 \ |
288 |
distutils flavors noegginfo noflavors nose nose2 \ |
286 |
optsuffix py3kplist pytest pytest4 pythonprefix \ |
289 |
optsuffix py3kplist pytest pytest4 pythonprefix \ |
287 |
unittest unittest2 |
290 |
unittest unittest2 |
Lines 595-600
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${P
Link Here
|
595 |
. endif |
598 |
. endif |
596 |
. endif |
599 |
. endif |
597 |
|
600 |
|
|
|
601 |
. if defined(_PYTHON_FEATURE_BUILD) |
602 |
. if ${PYTHON_VER} == 2.7 |
603 |
DEV_ERROR+= "USES=python:2.7 is incompatible with USE_PYTHON=build" |
604 |
. endif |
605 |
. if ${_CURRENTPORT} == ${PYTHON_PKGNAMEPREFIX}build |
606 |
DEV_ERROR+= "USE_PYTHON=build can't be used to build py-build itself" |
607 |
. endif |
608 |
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}build>0:devel/py-build@${PY_FLAVOR} |
609 |
. endif |
610 |
|
598 |
# distutils support |
611 |
# distutils support |
599 |
PYSETUP?= setup.py |
612 |
PYSETUP?= setup.py |
600 |
PYDISTUTILS_SETUP?= -c \ |
613 |
PYDISTUTILS_SETUP?= -c \ |
Lines 618-623
PYDISTUTILS_PKGVERSION?=${PORTVERSION}
Link Here
|
618 |
PYDISTUTILS_EGGINFO?= ${PYDISTUTILS_PKGNAME:C/[^A-Za-z0-9.]+/_/g}-${PYDISTUTILS_PKGVERSION:C/[^A-Za-z0-9.]+/_/g}-py${PYTHON_VER}.egg-info |
631 |
PYDISTUTILS_EGGINFO?= ${PYDISTUTILS_PKGNAME:C/[^A-Za-z0-9.]+/_/g}-${PYDISTUTILS_PKGVERSION:C/[^A-Za-z0-9.]+/_/g}-py${PYTHON_VER}.egg-info |
619 |
PYDISTUTILS_EGGINFODIR?=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} |
632 |
PYDISTUTILS_EGGINFODIR?=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} |
620 |
|
633 |
|
|
|
634 |
# build support |
635 |
. if defined(_PYTHON_FEATURE_DISTUTILS) |
636 |
. endif |
637 |
|
621 |
# nose support |
638 |
# nose support |
622 |
. if defined(_PYTHON_FEATURE_NOSE) |
639 |
. if defined(_PYTHON_FEATURE_NOSE) |
623 |
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} |
640 |
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} |
Lines 790-795
do-install:
Link Here
|
790 |
. endif |
807 |
. endif |
791 |
. endif # defined(_PYTHON_FEATURE_DISTUTILS) |
808 |
. endif # defined(_PYTHON_FEATURE_DISTUTILS) |
792 |
|
809 |
|
|
|
810 |
. if defined(_PYTHON_FEATURE_BUILD) |
811 |
. if !target(do-configure) |
812 |
do-configure: |
813 |
@${DO_NADA} |
814 |
. endif |
815 |
|
816 |
. if !target(do-build) |
817 |
do-build: |
818 |
@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} -m build --wheel --no-isolation --outdir ${WRKDIR} |
819 |
. endif |
820 |
|
821 |
. if !target(do-install) |
822 |
do-install: |
823 |
@if ! [ -e ${WRKDIR}/wheel ]; then ${MKDIR} ${WRKDIR}/wheel; fi; |
824 |
@cd ${WRKDIR}/wheel && \ |
825 |
unzip ${WRKDIR}/${PORTNAME}-${DISTVERSION}-py3-none-any.whl && \ |
826 |
${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PYTHON_SITELIBDIR} |
827 |
. endif |
828 |
. endif # defined(_PYTHON_FEATURE_BUILD) |
829 |
|
793 |
. if defined(_PYTHON_FEATURE_NOSE) |
830 |
. if defined(_PYTHON_FEATURE_NOSE) |
794 |
. if !target(do-test) |
831 |
. if !target(do-test) |
795 |
do-test: |
832 |
do-test: |