Remove conda.models.dist.Dist
usage
#5069
Labels
epic
a highlevel collection of smaller related issues
source::contributor
created by a frequent contributor
type::tech-debt
identifies or resolves some technical debt
Summary
Tracking issue to purge
Dist
fromconda-build
.Motivation
A couple of days ago I got a bit annoyed by
conda-build
's slow (and memory intensive) ramp up before it gets to its actual first environment solving.The mayor underlying issue is of course
conda
's continued use ofauxlib
entities for everything in the package index.(
auxlib
is actually not too bad conceptually -- but it's only viable for a few thousand (top-level) entries; and aconda-forge
repodata
withlinux-64
+noarch
is past half a million records by now...)Fixing that (=IMO, move the whole object creation/validation to compiled code) would be a thing I'd welcome much; but it's also a major endeavor to tackle.
An orthogonal thing to do in
conda-build
is to work on purging legacy behavior/code such that we could at least prepare to make use of the deferred creation of package records.A first step in that direction would be to finally remove
conda-build
's usage of the oldDist
objects (removed fromconda
's core workings in 2018).Impact
conda-build
.conda-build
but alsoconda
.conda_build
:Dist
-related functions which might be used downstream,Dist
-based package index anymore could break downstream expectations.Since this introduces these breaking changes, a major version bump seems sensible.
Progress
I started to work in this 2 days ago and made good progress.
Half way through it, I noticed some defunct or unused functions/parts.
Turns out a few of them have been defunct for years, and apparently @kenodegard recently made some preparations to lessen/remove usage of
Dist
🎉.I'll open a draft pull request in the next days.
Tasks
conda inspect channels
#5033conda.models.dist.IndexRecord
#5032The text was updated successfully, but these errors were encountered: