Coding 2022-12-14

Tags:
By Max Woerner Chase

All right, let's take a look at MOTR's code...

My goal here is to trace things back from the flake8 test. Let's see how this breaks down...

Okay, I'm lost again. Let's check out the facts() method? Oh, wow, my names for these things got janked. Basically, at some point, parametric information about how to construct the specific strain of environment required for the operation is injected into the ParametricCommand via with_adaptor(), and the build() method on that object retrieves it, and passes it to facts(), which combines it with the installer_registry data to pass it to installer.install(). The installer_registry is on the command.Metadata, and is, in these specific cases, populated from the PythonCmd helper.

So, for a synthetic version to work, I need to create a command.Metadata that has the desired installer data stored under a known key. In addition, I need a versions adaptor wrapped around a known key, which needs to be explicitly passed in, associated with a PVector[installer.PathWith[EnvironmentArgs]].

I apologize for how completely and thoroughly opaque that was, but I needed to go over this really thoroughly in order to remind myself where everything actually gets instantiated.

Maybe tomorrow, I can actually do something with all of this. For now, I'm done.

Good night.