Sunday, 2025-05-04

elibrokeitClark[m]: setuptools *absolutely refused* to change their own command scripts, on the rationale that "people should use pip install, and we are not touching or fixing legacy code someone might depend on"08:38
elibrokeitof course then they also used the bad command scripts as one of the reasons you should use pip, then removed the code from setuptools, but well... :)08:39
elibrokeithttps://github.com/pypa/setuptools/commit/5e907629baa69e0387b241e8ef7767edf4d0ede808:41
elibrokeitsetup.py install, imported ScriptWriter from easy_install08:41
elibrokeitnow they moved this to setuptools._scripts, it is "just" a refactor and moved imports08:42
elibrokeitso you can patch that instead08:42
elibrokeitbe aware they finally plan to totally remove install support ~November08:42
elibrokeitsee also https://bugs.launchpad.net/pbr/+bug/210773208:44
fricklerlooking at https://zuul.opendev.org/t/openstack/builds?project=openstack%2Fpbr&pipeline=periodic&skip=0 there have been issues with the pbr CI for months already, so we got multiple things to deal with at the same time now12:59
fricklerthis is complicated by test-requirements depending on pbr for their installation, but the latter doesn't use the pbr version under test, so that's broken then, too13:00
fricklermaybe if we would build a wheel for testresources and push it to our caches, we could work around issues like in https://zuul.opendev.org/t/openstack/build/ccf30896370f409fbdcc829ab782f244 and then go ahead to tackle the real issues13:17
Clark[m]frickler: you may be able to pre install pbr from the local repo before requirements or test-requirements then I think it will use that version13:53
Clark[m]Does that issue imply the problem is only when doing editable installs? I guess because pip will create the file when not editable? I half wonder if we can workaround this by dropping editable installs13:56
Clark[m]I suppose the easiest thing may be to drop the custom command scripts entirely. Accept that an entry point implementation is likely slower but functional then sort out how to stop relying on this by November?14:03
Clark[m]Not sure if that is helpful at all14:03
elibrokeitClark[m]: no, it shows up in Gentoo package builds too14:53
elibrokeitit seems to be importing the implementation unconditionally at startup 14:53
elibrokeitso that it *can* override the attributes in the event of using editable installs 14:54
elibrokeitbut also, it's overriding `setup.py install` as well14:54
elibrokeitmore specifically it is overriding the install_* functions which are internally used by setuptools even in "modern" wheel building modes14:55
Clark[m]I see. Ya I wonder if we can just drop it entirely. That will probably break the wsgi scripts? But everything else would work using setuptools implementation (which may produce slow scripts?)15:23
fricklerpre-installing pbr into the venv only helps when also adding --no-build-isolation to pip install. but with that my attempt at https://review.opendev.org/c/openstack/pbr/+/948752 seems to work for me locally. there are still testing failures though due to the develop deprecation15:26
elibrokeitClark[m]: it is literally a moved import15:40

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!