Skip to content

Commit e1359d2

Browse files
committed
Add override for uvloop
1 parent 6dcd2df commit e1359d2

2 files changed

Lines changed: 1530 additions & 134 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ autoemulate = ["datasets/**/*"]
8484
[tool.setuptools.exclude-package-data]
8585
autoemulate = ["**/__pycache__", "**/*.pyc"]
8686

87+
[tool.uv]
88+
# uvloop does not support Windows (no wheels, setup.py raises RuntimeError).
89+
# It's pulled in via harmonic -> flax -> orbax-checkpoint -> uvloop.
90+
# orbax-checkpoint falls back to the default asyncio loop when uvloop is absent,
91+
# so skipping it on Windows is safe. On Linux/macOS it is still installed normally.
92+
override-dependencies = ["uvloop>=0.0.0; sys_platform != 'win32'"]
93+
8794
[build-system]
8895
requires = ["setuptools>=61.0", "wheel"]
8996
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)