From 98d80a6e816c3ec0b5736a80c69ef586c103424b Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Wed, 1 May 2024 19:24:39 +0200
Subject: [PATCH] [pyproject] CUDA system-requirements should only appear at
 the cuda feature

---
 pixi.lock      | 4 ++--
 pyproject.toml | 4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/pixi.lock b/pixi.lock
index cd8d60bc..5a0c77a2 100644
--- a/pixi.lock
+++ b/pixi.lock
@@ -13199,9 +13199,9 @@ packages:
   timestamp: 1704317789138
 - kind: pypi
   name: mednet
-  version: 1.0.1.dev98+g111a87f.d20240501
+  version: 1.0.1.dev100+gb84f2bf.d20240501
   path: .
-  sha256: ce09849338bd8cb3804abf92e268ec28b29619c39226a99a66e14ef250e23ee2
+  sha256: 45d2ed5699466167f78e85c6214c8e20e943799f558571a3be1d875e00bd9408
   requires_dist:
   - clapper
   - click
diff --git a/pyproject.toml b/pyproject.toml
index 055db138..54def552 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -77,7 +77,6 @@ platforms = ["linux-64", "osx-arm64"]
 
 [tool.pixi.system-requirements]
 linux = "4.19.0"
-cuda = "12.1"
 
 [tool.pixi.dependencies]
 clapper = "*"
@@ -165,6 +164,9 @@ uv-update-lock = "uv pip compile -q pyproject.toml --python-platform=linux -o uv
 channels = ["nvidia", {channel = "pytorch", priority = -1}]
 platforms = ["linux-64", "osx-arm64"]
 
+[tool.pixi.feature.cuda.system-requirements]
+cuda = "12.1"
+
 [tool.pixi.feature.cuda.activation]
 scripts = ["cuda_activation.sh"]
 
-- 
GitLab