[project]
name = "d2l-study"
version = "0.1.0"
description = "Dive into Deep Learning study environment (notebooks + vendored d2l)"
requires-python = ">=3.8,<3.12"
# d2l relies on depricated (from 3.12) pkgutil.ImImporter class.
# See: https://github.com/d2l-ai/d2l-en/issues/2659#issuecomment-3230737568
# Core runtime dependencies you will likely need; adjust as you go.
dependencies = [
"jupyter>=1.0.0",
"ipykernel>=6.0.0",
"numpy>=1.23",
"pandas>=2.0",
"matplotlib>=3.7",
"torch>=2.0,
"d2l==1.0.3", # install from PyPI
]
[build-system]
requires = ["hatchling>=1.0.0"]
build-backend = "hatchling.build"
[tool.uv]
# This project is notebook-oriented and not meant to be
# installed as a package, so disable packaging for the root.
package = false
I'm trying to set up a study environment for d2l in
uv. Python 3.12 (Windows 10) leads to an error, since there is a dependency ondistutilsbynumpy1.23.5, which was signaled as deprecated in PyTorch (PEP 632).d2l-en/setup.py
Line 6 in 23d7a5a
pyproject.tomlfileuv syncwithrequires-python = ">=3.8"uv syncwithrequires-python = ">=3.8,<3.12"