Wednesday, 2026-02-11

tkajinamI wonder if we could add pkg_resources earlier than pulling it by requirements.txt. This helps us to workaround the problems caused by "abandoned" dependencies which still require pkg_resources during installation04:54
tkajinamI double that we can update these repos. One good example is zake (We aimed to get rid of it but the work is still in-progress due to heavy dependency of our test cases)04:54
opendevreviewribaudr proposed openstack/election master: Adding RenĂ© Ribaud candidacy for Nova 2026.2 PTL  https://review.opendev.org/c/openstack/election/+/97634910:29
opendevreviewMatt Crees proposed openstack/election master: Adding Matt Crees candidacy for Blazar PTL  https://review.opendev.org/c/openstack/election/+/97638112:57
*** iurygregory_ is now known as iurygregory13:26
sean-k-mooneytkajinam: os we dicsused this a bit on the qa channel stephfin has created https://pypi.org/project/standard-pkg-resources/1.0.0/ and https://github.com/SeanMooney/oslo-pkg-resources but with the same intent14:11
sean-k-mooneyprovdie a repackaging of pkg_resouces that could be installed if needed a tempory messure until package are updated14:12
sean-k-mooneyi didnt push mine to pypi as i wanted to disucss if we wanted to carry this in oslo first 14:12
sean-k-mooneywith either redistibution we could pre install it in devstack ro the tox jobs when using a setuptools that does not provdie it or xtatic and effected packages could include it as an extra or direct dep14:13
sean-k-mooneyif its a runtime or build dep14:14
sean-k-mooneybut realisticlly neihter is a long term solution but both would work for 2026.1 or stable branches potially while we figure out how to complete the removeal work that stephen was doing14:14
fungitkajinam: you'd need to do it with whatever tool is creating your venv, or between venv creation and package installation14:48
clarkbfungi: tkajinam: that is what build deps are for in your pyproject.toml right?14:55
fungiclarkb: only if you're installing an sdist14:56
fungipip installing an sdist builds a wheel in an isolated environment and that's where setup_requires from setup.py or [build-system].requires from pyproject.toml get installed14:57
clarkbya I interpreted "still require pjg_resources during installation" as meaning we need to build the package14:57
fungipip installing a wheel does none of that because the wheel simply gets unpacked in-place14:58
clarkbbut maybe we just mean pull it in during installation for runtime14:58
fungiright, but for the zake example, it would need to be configured in the zake sdist itself14:58
fungiwhich is the entire problem unless you fork zake or help upstream fix it, and then you don't need a separate workaround anyway14:59
tkajinamI agree but talking specifically about zake it's already retired and we can't fix it upstream anymore15:00
tkajinamhttps://paste.opendev.org/show/bUYBOg5wQ6C6lCQB0szQ/15:00
fungithere might be an override option for pip to list additional packages to preinstall in the isolated build environment? i don't really know15:00
tkajinamthese are import of pkg_resources found in deps currently defined in global-requirements.txt15:00
fungitkajinam: runtime use of pkg_resources or build-time use of pkg_resources in a sdist?15:01
tkajinamI've not checked how many of these are actually pulling pkg_resources during build , though15:01
clarkbfungi: I looked and didn't find one. Only the ability to disable build isolation when isolation is used15:01
fungiif it's runtime use then it doesn't matter how early you install pkg_resources, as long as it's there later at runtime15:02
fungiclarkb: i guess disabling build isolation and preinstalling pkg_resources into the venv should be a viable workaround for build-time use15:03

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