Converting Guess over to an import statement mapping to multiple packages that can provide that import
If any package in the package array is installed, the entire array is removed
After filtering, we pick the first package in every array and offer those as the response from guess
Follow-on work to this as follows:
1) Augment the process that writes internal/nix/python_map.json to also include information about which package roots (the shallowest module in a package with more than one child, to start. There may be some utility in indexing what classes are available as well, but that'll come in the future)
2) Alter UPM to build a bespoke index by walking the $PYTHONPATH to exclude packages from guess that already supply necessary imports.
Initial work towards #15
Guess
over to an import statement mapping to multiple packages that can provide that importguess
Follow-on work to this as follows: 1) Augment the process that writes
internal/nix/python_map.json
to also include information about which package roots (the shallowest module in a package with more than one child, to start. There may be some utility in indexing what classes are available as well, but that'll come in the future) 2) Alter UPM to build a bespoke index by walking the$PYTHONPATH
to exclude packages fromguess
that already supply necessary imports.