uv: uv fails to install `jupyter_contrib_nbextensions==0.7.0` while pip succeeds

Hello,

I’m using uv 0.4.30 (61ed2a236 2024-11-04) on Windows and I’m trying to install jupyter_contrib_nbextensions==0.7.0. It seems that uv fails to install the package as it cannot be built with the latest versions of setuptools, due to some deprecations.

uv pip install jupyter_contrib_nbextensions==0.7.0

However, the latest version of pip (24.3.1) succeeds to build and install the package and I would like to understand this difference in behavior.

pip install jupyter_contrib_nbextensions==0.7.0

I read the documentation on build failures and I don’t understand if I can force a version of setuptools and wheel for jupyter_contrib_nbextensions.

Also, can I manage this package with uv if it has been installed using pip?

Thank you for your awesome work!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (18 by maintainers)

Commits related to this issue

Most upvoted comments

@charliermarsh I’ve tracked program’s behavior, and it should serve as a reference. The nesting of the UV cache seems quite deep, but pip seems to have only the nesting of the source code.

UV (uv 0.4.30 (61ed2a236 2024-11-04))

( maximum 233 without user home path)

~\AppData\Local\Temp\.tmpyBcss8\sdists-v5\pypi\jupyter-contrib-nbextensions\0.7.0\Jk8_nRpxZF8Zdq-pjfEJr\jupyter_contrib_nbextensions-0.7.0.tar.gz\build\lib\jupyter_contrib_nbextensions\nbextensions\code_prettify\README_code_prettify.md

PIP (pip 24.3.1)

(maximum 209 without user home path)

~\AppData\Local\Temp\pip-install-7pgurthd\jupyter-contrib-nbextensions_0d7b5c639ab74a4fb664a5235eb7c74d\src\jupyter_contrib_nbextensions\nbextensions\code_prettify\README_code_prettify.md
~\AppData\Local\Temp\pip-install-7pgurthd\jupyter-contrib-nbextensions_0d7b5c639ab74a4fb664a5235eb7c74d\build\lib\jupyter_contrib_nbextensions\nbextensions\code_prettify\README_code_prettify.md
~\AppData\Local\Temp\pip-install-7pgurthd\jupyter-contrib-nbextensions_0d7b5c639ab74a4fb664a5235eb7c74d\build\bdist.win-amd64\wheel\jupyter_contrib_nbextensions\nbextensions\code_prettify\README_code_prettify.md

I don’t believe so. Using those UNC paths breaks a lot of things – for example, any relative paths in the build will be interpreted relative to the drive: https://github.com/astral-sh/uv/pull/1277

I’m a Windows user and I couldn’t reproduce the problem you mentioned. Furthermore, according to your description, the package installed with uv is not the same as the one installed with pip. (Corrected)