| Both sides previous revision Previous revision Next revision | Previous revision |
| python:setuptools [2023/10/12 01:22] – update order and such CharlieLi | python:setuptools [2023/10/12 07:30] (current) – further clarify RUN_DEPENDS CharlieLi |
|---|
| |
| ===== PY_SETUPTOOLS ===== | ===== PY_SETUPTOOLS ===== |
| A new variable ''%%${PY_SETUPTOOLS}%%'' will be introduced, in the same vein as variables for other third-party modules like ''%%${PYNUMPY}%%'' and ''%%${PY_BOOST}%%''. This variable will provide the correct dependency line for setuptools based on the tooling specified. | A new variable ''%%${PY_SETUPTOOLS}%%'' will be introduced, in the same vein as variables for other third-party modules like ''%%${PYNUMPY}%%'' and ''%%${PY_BOOST}%%''. This variable will provide the correct dependency line for setuptools based on the tooling specified, and is only valid for the port that it is used in. |
| |
| ===== Removal from RUN_DEPENDS ===== | ===== Removal from RUN_DEPENDS ===== |
| setuptools will be removed from ''%%RUN_DEPENDS%%'' by default. This should clean up runtime environments and reduce the dependency tree. Ports shall not specify ''%%${PY_SETUPTOOLS}%%'' to ''%%RUN_DEPENDS%%'' at all to prevent downstream environment pollution. Any ports downstream of those that would otherwise call for a ''%%${PY_SETUPTOOLS}%%'' ''%%RUN_DEPENDS%%'' should add it to ''%%BUILD_DEPENDS%%'', or preferably, work to remove the run dependency entirely. | setuptools will be removed from ''%%RUN_DEPENDS%%'' to clean up runtime environments and reduce the dependency tree. Ports shall never specify ''%%RUN_DEPENDS=${PY_SETUPTOOLS}%%'' except in the following cases: |
| | * Leaf ports (no further consumers) |
| | * Helper ports of PEP-517 build backends that use ''%%devel/py-setuptools-scm%%'' to derive versions from source code management systems (git, mercurial, etc). Other ports shall not specify these as ''%%RUN_DEPENDS%%''. |
| | Any consumers not covered by the above exceptions should add ''%%BUILD_DEPENDS=${PY_SETUPTOOLS}%%'' directly if not ''%%USE_PYTHON=distutils%%'', or preferably, work to remove the run dependency entirely. |
| | |
| | Different versions of setuptools cannot exist in the same environment. |
| |
| ===== devel/py-setuptools58 ===== | ===== devel/py-setuptools58 ===== |