Commit Graph

20 Commits

Author SHA1 Message Date
Miro Hrončok
593224df20 Stop Recommending setuptools and move the pip Recommendation to python3-devel
With modern pip, setuptools is not required on runtime.
Python packages use PEP 517 instead.

Hence, we no longer Recommend setuptools and pip, but pip only.

Users who are impacted may see one of:

    ModuleNotFoundError: No module named 'setuptools'
    ModuleNotFoundError: No module named 'pkg_resoureces'

They can easily recover by installing python3-setuptools or python3-pkg_resources.

Related but not explicitly part of:
https://fedoraproject.org/wiki/Changes/Reduce_dependencies_on_python3-setuptools

Together with this change, we move the pip Recommendation to the python3-devel package.
"Regular users" of Fedora are less likely to need pip and more likely to brick
their systems with it. If they need pip, they can dnf install pip.

Pip (incl. setuptools) still works in environments created with venv or virtualenv.

Not bumping the release because this only affects the package when we
upgrade the main Python in Fedora to 3.10.
2021-04-23 12:57:43 +02:00
Miro Hrončok
19bf595786 Do not require python3-setuptools from python3-devel
See https://fedoraproject.org/wiki/Changes/Reduce_dependencies_on_python3-setuptools

Not bumping the release because this only affects the package in Copr for now,
until we upgrade the main Python in Fedora to 3.10.

Co-authored-by: Tomas Hrnciar <thrnciar@redhat.com>
2021-04-19 13:26:17 +02:00
Tomas Hrnciar
9f5874443d Update to 3.10.0a7 2021-04-06 14:27:52 +02:00
Miro Hrončok
8aff12c51e When flat, don't require/provide python(abi) = 3.10
The regex was broken for two+ digit minor version.

Providing python(abi) = 3.10 confuses the dependency resolution in the
Python 3.10 testing copr.

E.g. python3-sphinx requires `python(abi) = 3.10` and `/usr/bin/python3`.
In certain circumstances, dnf installs python3 and python3.10 from rawhide,
satisfying both of the dependencies.

Running `sphinx-build` hence ends up with:

    Traceback (most recent call last):
      File "/usr/bin/sphinx-build", line 5, in <module>
        from sphinx.cmd.build import main
    ModuleNotFoundError: No module named 'sphinx'
2021-03-22 12:44:11 +01:00
Tomas Hrnciar
87f3cf679a Update to 3.10.0a6 2021-03-02 18:03:24 +01:00
Tomas Hrnciar
4a2922475a Update to 3.10.0a5 2021-02-04 11:17:36 +01:00
Fedora Release Engineering
ecc447a2f8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 14:27:44 +00:00
Charalampos Stratakis
b8b7372cd5 Compile the debug build with -O0 instead of -Og (rhbz#1818857) 2021-01-19 16:22:16 +01:00
Miro Hrončok
d059157127 Update to 3.10.0a4 2021-01-05 00:29:47 +01:00
Tomas Hrnciar
eb9dd45945 Update to 3.10.0a3 2020-12-08 09:44:22 +01:00
Miro Hrončok
3b24e77f3e BuildRequire make explicitly
See https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-07 19:35:08 +01:00
Tomas Orsava
443a3d1807 Add comment about BuildRequiring self 2020-11-30 18:49:05 +01:00
Miro Hrončok
b7e6ca08eb Add explicit requirement on tzdata (needed for zoneinfo)
See https://twitter.com/pganssle/status/1327344516475531272

Not bumping a release, tzdata is pulled in transitively, so the impact is minimal.
2020-11-14 18:58:00 +01:00
Miro Hrončok
a045b8fca0 Drop the no_semantic_interposition %bcond
Since 3.10.0a2, this is the default behavior upstream

See https://bugs.python.org/issue38980
2020-11-04 18:55:04 +01:00
Miro Hrončok
baff8f4745 Update to 3.10.0a2 2020-11-04 01:52:22 +01:00
Miro Hrončok
13d401b11a Hardcode %{_bindir} into python-config script + remove unreachable error handling
The `dirname $0` breaks the script when it is linked to a different location,
for example the RHEL's /usr/libexec/platform-python-config.

The error handling was never reachable, failed exec ends the script.

See https://src.fedoraproject.org/rpms/python3.9/pull-request/38
2020-10-27 16:06:38 +00:00
Tomas Orsava
0995309f1a Add /usr/bin/2to3-X.Y binary for consistency with pathfixX.Y.py and other binaries 2020-10-22 11:52:04 +02:00
Tomas Orsava
87301192dc Remove old Conflicts from Fedora 31 2020-10-21 15:49:52 +02:00
Miro Hrončok
d20101fdfc Finish initial bootstrap, build Python 3.10 with Python 3.10 2020-10-12 21:03:07 +02:00
Miro Hrončok
d3f7caa77a Initial Python 3.10 package forked from Python 3.9 2020-10-12 10:32:54 +02:00