| tkajinam | I 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 installation | 04:54 |
|---|---|---|
| tkajinam | I 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 |
| opendevreview | ribaudr proposed openstack/election master: Adding René Ribaud candidacy for Nova 2026.2 PTL https://review.opendev.org/c/openstack/election/+/976349 | 10:29 |
| opendevreview | Matt Crees proposed openstack/election master: Adding Matt Crees candidacy for Blazar PTL https://review.opendev.org/c/openstack/election/+/976381 | 12:57 |
| *** iurygregory_ is now known as iurygregory | 13:26 | |
| sean-k-mooney | tkajinam: 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 intent | 14:11 |
| sean-k-mooney | provdie a repackaging of pkg_resouces that could be installed if needed a tempory messure until package are updated | 14:12 |
| sean-k-mooney | i didnt push mine to pypi as i wanted to disucss if we wanted to carry this in oslo first | 14:12 |
| sean-k-mooney | with 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 dep | 14:13 |
| sean-k-mooney | if its a runtime or build dep | 14:14 |
| sean-k-mooney | but 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 doing | 14:14 |
| fungi | tkajinam: you'd need to do it with whatever tool is creating your venv, or between venv creation and package installation | 14:48 |
| clarkb | fungi: tkajinam: that is what build deps are for in your pyproject.toml right? | 14:55 |
| fungi | clarkb: only if you're installing an sdist | 14:56 |
| fungi | pip 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 installed | 14:57 |
| clarkb | ya I interpreted "still require pjg_resources during installation" as meaning we need to build the package | 14:57 |
| fungi | pip installing a wheel does none of that because the wheel simply gets unpacked in-place | 14:58 |
| clarkb | but maybe we just mean pull it in during installation for runtime | 14:58 |
| fungi | right, but for the zake example, it would need to be configured in the zake sdist itself | 14:58 |
| fungi | which is the entire problem unless you fork zake or help upstream fix it, and then you don't need a separate workaround anyway | 14:59 |
| tkajinam | I agree but talking specifically about zake it's already retired and we can't fix it upstream anymore | 15:00 |
| tkajinam | https://paste.opendev.org/show/bUYBOg5wQ6C6lCQB0szQ/ | 15:00 |
| fungi | there might be an override option for pip to list additional packages to preinstall in the isolated build environment? i don't really know | 15:00 |
| tkajinam | these are import of pkg_resources found in deps currently defined in global-requirements.txt | 15:00 |
| fungi | tkajinam: runtime use of pkg_resources or build-time use of pkg_resources in a sdist? | 15:01 |
| tkajinam | I've not checked how many of these are actually pulling pkg_resources during build , though | 15:01 |
| clarkb | fungi: I looked and didn't find one. Only the ability to disable build isolation when isolation is used | 15:01 |
| fungi | if it's runtime use then it doesn't matter how early you install pkg_resources, as long as it's there later at runtime | 15:02 |
| fungi | clarkb: i guess disabling build isolation and preinstalling pkg_resources into the venv should be a viable workaround for build-time use | 15:03 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!