[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1065893: libreoffice: Please drop dependencies on python3-distutils



Hi again,

Am 10.03.24 um 19:59 schrieb Rene Engelhard:
BTW, What is the replacement for it? setuptools._distutils? As in the following patch?

OK, so discussion on IRC gave:

19:51 < tumbleweed> _rene_: distutils is removed in 3.12
19:51 < tumbleweed> if you need distutils, try installing setuptools, it provides a distutils shim
20:00 < _rene_> setuptools._distutils, yes
20:00 < _rene_> but yet import distutils works in 3.12 :)
20:00 < _rene_> and afaicr from debconf in kochi we didn't want to force distutils removal yet for python3.12-as-default, only after it? 20:03 < _rene_> tumbleweed: does https://www.rene-engelhard.de/~rene/d look sane? 20:04 < tumbleweed> _rene_: yes, it works because setuptools provide a shim to make it work 20:04 < _rene_> (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065893#19) 20:04 -zwiebelbot:#debian-release- Debian#1065893: libreoffice: Please drop dependencies on python3-distutils - https://bugs.debian.org/1065893 20:05 < tumbleweed> just build-depend on python3-setuptools and you don't need the rest of your patch
20:05 < _rene_> I see, ok
20:05 < tumbleweed> obviously upstream should stop using distutils, but you've got time there 20:06 < tumbleweed> the answer isn't to use setuptools._distutils, but rather sysconfig
20:06 < _rene_> should have been in the bugreport....
20:07 < tumbleweed> fwiw, the bof notes say: https://salsa.debian.org/debconf-team/public/data/dc23/-/blob/main/etherpad/txt/27-python-bof.txt#L20
20:10 < _rene_> hmm, indeed. but dh-python already does that.
20:10 < tumbleweed> the problem for you was more than just a dependency
20:10 < _rene_> so if it provided a shim to make plain import distutils work one could just make it Provides: python3-disturils
20:10 < _rene_> distutils
20:11 < _rene_> aka make the real package virtual and stuff continues to work
20:11 < tumbleweed> err, what am I saying
20:11 < tumbleweed> did you try just dropping the dependency on python3-distutils? 20:11 < _rene_> I can't remove it from the disk due to everything python'ish being removed, too with it 20:12 < _rene_> The following packages will be REMOVED: dh-python python3-dev python3-distutils python3-setuptools
20:12 -!- andibmu [~andi@i5387A7D5.versanet.de] has joined #debian-release
20:12 < tumbleweed> I mean from your build-depends so you don't get in your build chroot 20:13 < _rene_> how does that help if I still need dh-python and python3-dev? (and gobject-introspection)
20:13 < tumbleweed> they don't need distutils. Nothing does in 3.12
20:13 < _rene_> just now doing it in a chroot where I can do stuff and do a manual debuild -Pnogir 20:13 < _rene_> why does dh-python and python3-dev then get removed on apt remove python3-distutils?
20:14 < _rene_> (and the gobject-introspection stuff.)
20:15 < tumbleweed> oh, right, dh-python does still depend on it
20:15 < tumbleweed> fine. As long as you drop *your* dependency, we should be OK when everyone else drops theirs
20:15 < _rene_> and apt -t experimental install python3-dev also does
20:15 < _rene_> The following NEW packages will be installed: python3-dev python3-distutils
20:16 < tumbleweed> that's OK

so just exchanging the build-dep would be fine. You could have just said so in the report for people who are not that into python stuff.

Will be fixed in next experimental upload.

Regards,

Rene


Reply to: