This converts bsd.python.mk into a USES file.
Deprecations
- USE_PYTHON: USES=python, USES=python:2.7+, USES=python:3, etc.
- USE_PYTHON_BUILD: USES=python:build
- USE_PYTHON_RUN: USES=python:run
- PYTHON_MASTER_SITES: only five ports use it and it's exactly the same as MASTER_SITE_PYTHON
- PYDISTUTILS_INSTALLNOSINGLE: four ports use it
The following knobs are replaced:
- USE_PYDISTUTILS: see below
- PYDISTUTILS_AUTOPLIST: see below
- PYDISTUTILS_NOEGGINFO: see below
- USE_PYTHON_PREFIX: see below
- PYTHON_CONCURRENT_INSTALLL: see below
- PYTHON_PY3K_PLIST_HACK: see below
New Features
A new PYTHON_FEATURES variable was added which enables certain features for a
port:
- PYTHON_FEATURES=distutils replaces USE_PYDISTUTILS
- PYTHON_FEATURES=autoplist replaces PYDISTUTILS_AUTOPLIST
- PYTHON_FEATURES=py3kplist replaces PYTHON_PY3K_PLIST_HACK
- PYTHON_FEATURES=noegginfo replaces PYDISTUTILS_NOEGGINFO
- PYTHON_FEATURES=concurrent replaces PYTHON_CONCURRENT_INSTALL
- PYTHON_FEATURES=pythonprefix replaces USE_PYTHON_PREFIX
Other changes
Rework the settings for a specific python version to be set dynamically,
instead of hardcoded. Only a single place needs to be touched on updates of
supported Python versions now (_PYTHON_VERSIONS).