From cb9418ce237ada412a186dbec7f1e27d32c343b2 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jun 27 2020 14:51:49 +0000 Subject: Python: Say that setuptools might be needed, show it in the example This doesn't add any rules, it just makes things more explicit. See also https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/GCPGM34ZGEOVUHSBGZTRYR5XKHTIJ3T7/ --- diff --git a/guidelines/modules/ROOT/examples/python-example.spec b/guidelines/modules/ROOT/examples/python-example.spec index 7f5c431..044cdf2 100644 --- a/guidelines/modules/ROOT/examples/python-example.spec +++ b/guidelines/modules/ROOT/examples/python-example.spec @@ -20,6 +20,7 @@ rest of the description that provides more details.} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel +BuildRequires: python3-setuptools %description -n python3-%{srcname} %_description diff --git a/guidelines/modules/ROOT/pages/Python.adoc b/guidelines/modules/ROOT/pages/Python.adoc index 586bd09..c3d0795 100644 --- a/guidelines/modules/ROOT/pages/Python.adoc +++ b/guidelines/modules/ROOT/pages/Python.adoc @@ -43,6 +43,8 @@ This rule does not apply to applications. == Dependencies Packages building for Python 3 will need `BuildRequires: python3-devel`. +Most of them will also need `BuildRequires: python3-setuptools`. +When in doubt, inspect the `setup.py` file for `setuptools` import. Packages MUST NOT have dependencies (either build-time or runtime) on packages named with the unversioned `python-` prefix. Dependencies on Python packages instead MUST use names beginning with `python3-`.