Currently micropip.install() ignores the yanked flag and even installs the yanked version.
For example, as of 2024-10-22, micropip.install("python-multipart") installs 0.0.13 even though the version is yanked.

>>> import micropip
>>> await micropip.install("python-multipart")
>>> import python_multipart
>>> python_multipart.__version__
'0.0.13'
As a reference, pip deals with the yank flag properly, as the yanked python-multipart==0.0.13 is ignored as below for example.
.venv ❯ pip install python-multipart
Collecting python-multipart
Obtaining dependency information for python-multipart from https://files.pythonhosted.org/packages/f5/0b/c316262244abea7481f95f1e91d7575f3dfcf6455d56d1ffe9839c582eb1/python_multipart-0.0.12-py3-none-any.whl.metadata
Downloading python_multipart-0.0.12-py3-none-any.whl.metadata (1.9 kB)
Downloading python_multipart-0.0.12-py3-none-any.whl (23 kB)
Installing collected packages: python-multipart
Successfully installed python-multipart-0.0.12
Currently
micropip.install()ignores theyankedflag and even installs the yanked version.For example, as of 2024-10-22,
micropip.install("python-multipart")installs0.0.13even though the version is yanked.As a reference,
pipdeals with theyankflag properly, as the yankedpython-multipart==0.0.13is ignored as below for example.