I have picked up the then orphaned csound on 2022-10-17 to fix its
unrelated FTBFS issues, and the current csound-6.16.2-7 package
successfully builds locally with your below build instructions which
"rm -rf" distutils from the mock buildroot.

So the csound-6.16.2-7 package appears to be good to go for sans
distutils builds (and BTW, csound.spec has been BuildRequiring
python3-setuptools since at least 2019-08-19).

I am therefore assuming the csound package landed on this list by
mistake. Possibly csound was still FTBFS when you did your sans
distutils build, and then I had just fixed csound to build successfully
when you ran the control-group copr builds.

-ndim

On 2022-10-18 11:27 +0200, Miro Hrončok <mhron...@redhat.com> wrote:

> Hey Pythonistas.
> 
> The Python standard library distutils module will be removed from
> Python 3.12+
> 
> https://peps.python.org/pep-0632/
> 
> As preparatory work, we build all python packages in a Copr
> repository with Python 3.11 sans distutils:
> 
> https://copr.fedorainfracloud.org/coprs/g/python/python-without-distutils/
> 
> I've rebuilt all the failed builds again and also in a control-group
> copr:
> 
> https://copr.fedorainfracloud.org/coprs/g/python/python-with-distutils/
> 
> 250 packages that failed to build without distuils but succeeded with
> distutils need to be examined and categorized into various different
> groups:
> 
>   - package uses distutils only if sys.version_info < (3, 12)
>       -- this is OK but still fails here
>   - package uses distutils unconditionally and the package needs to
> be fixed
>   - package uses another package that uses distutils unconditionally
>        and the dependency needs to be fixed
> 
> I suspect most of the packages will fail to build with Python 3.12
> (planned for Fedora 39, change proposal TBD). The python3-setutpools
> package provides a distutils module [^1], so sometimes "simply"
> adding BuildRequires: python3-setuptools might workaround the problem.
> 
> However, upstream involvement is recommended.
> 
> A few bugzillas were opened wrt this and I plan to open more:
> 
> https://bugzilla.redhat.com/showdependencytree.cgi?id=PYTHON3.12&hide_resolved=0
> 
> I've also oepned some upstream Pull Requests:
>      https://github.com/pypa/pip/pull/11522
>      https://github.com/pypa/setuptools/pull/3636
>      https://pagure.io/fedora-gather-easyfix/pull-request/10
>      https://github.com/filbranden/dnf-plugins-perfmetrics/pull/1
>      https://github.com/rpm-software-management/deltarpm/pull/17
> 
> Could you please help me by looking at your failed packages and
> talking to your upstreams? Feel free to reply with links, questions,
> bugzillas...
> 
> To test this locally, you can do something like:
> 
> 1. fedpkg clone $PKG && cd $PKG
> 2. mock -r fedora-rawhide-x86_64 init
> 3. mock -r fedora-rawhide-x86_64 install python3-devel
> 4. sudo rm -rf 
> /var/lib/mock/fedora-rawhide-x86_64/root/usr/lib64/python3.11/distutils/
> 4. fedpkg mockbuild -N
> 
> 
> Thanks!
> 
> ------------------------
> 
> [^1]: Unfortunately,  is not 100 % compatible with the removed
> standard library one distutils:
> https://github.com/pypa/setuptools/issues/3532
> 
> ------------------------
> 
> Maintainers by package:
> [...]
> csound               ndim
> [...]
> 
> Packages by maintainer:
> [...]
> ndim       csound
> [...]
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to