[Webkit-unassigned] [Bug 284071] New: [AutoInstall] Package registration is backwards (distribution v. import)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 4 15:31:43 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=284071
Bug ID: 284071
Summary: [AutoInstall] Package registration is backwards
(distribution v. import)
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gsnedders at apple.com
CC: webkit-bug-importer at group.apple.com
Currently, we have:
Package(import_name: str, version: Version=None, pypi_name: str|None=None, slow_install: bool=False, wheel: bool|None=None, aliases: list[str]|None=None, implicit_deps: list[str]|None=None)
However, this is backwards. We require "import_name", which refers to an import package (https://packaging.python.org/en/latest/glossary/#term-Import-Package), but we can't actually _just_ install a given import package; we can only install a given distribution package (https://packaging.python.org/en/latest/glossary/#term-Distribution-Package), what we call a "pypi_name".
This totally fails to account for the fact that a single distribution package can be made up of many import packages, and if you enumerate these all separately we'll end up with the AutoInstaller needlessly installing and reinstalling the same distribution package. (You can workaround this by specifying things as aliases, but that's somewhat non-obvious.)
We should probably try and move away from this, and ideally we shouldn't need aliases at all.
Our main constraint is that given a Python script importing a given import package, we need to be able to find what distribution package provides it.
We probably want to have as our primary key here the distribution package name, and then list import packages it provides (and we can error if it doesn't provide the import packages we expect).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241204/5e5d0a2b/attachment.htm>
More information about the webkit-unassigned
mailing list