Skip to content

Failed to install deps with no-build-isolation #5614

@kewenyu

Description

@kewenyu

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

Commands I ran and their output:

pixi install

pixi.toml/pyproject.toml file that reproduces my issue:

[workspace]
channels = ["conda-forge"]
name = "lyra"
platforms = ["linux-64"]
version = "0.1.0"

[tasks]

[dependencies]

[feature.lyra]
channels = ["conda-forge"]

[feature.lyra.dependencies]
python = "3.10.*"
pip = "25.0.*"
cmake = "*"
ninja = "*"
gcc = "12.4.0.*"
gxx = "12.4.0.*"
cuda-version = "12.4.*"
cuda = "12.4.*"
cuda-nvcc = "12.4.*"
cuda-toolkit = "12.4.*"

[feature.lyra.pypi-options]
no-build-isolation = ["gsplat", "fused-ssim", "causal-conv1d"]

[feature.lyra.pypi-dependencies]
attrs = "==25.1.0"
better-profanity = "==0.7.0"
boto3 = "==1.35.99"
decord = "==0.6.0"
diffusers = "==0.32.2"
einops = "==0.8.1"
huggingface-hub = "==0.29.2"
hydra-core = "==1.3.2"
imageio = { version = "==2.37.0", extras = ["pyav", "ffmpeg"] }
iopath = "==0.1.10"
ipdb = "==0.13.13"
loguru = "==0.7.2"
mediapy = "==1.2.2"
megatron-core = "==0.10.0"
nltk = "==3.9.1"
numpy = "==1.26.4"
nvidia-ml-py = "==12.535.133"
omegaconf = "==2.3.0"
opencv-python = "==4.10.0.84"
pandas = "==2.2.3"
peft = "==0.14.0"
pillow = "==11.1.0"
protobuf = "==4.25.3"
pynvml = "==12.0.0"
pyyaml = "==6.0.2"
retinaface-py = "==0.0.2"
safetensors = "==0.5.3"
scikit-image = "==0.24.0"
sentencepiece = "==0.2.0"
setuptools = "==76.0.0"
termcolor = "==2.5.0"
torch = "==2.6.0"
torchvision = "==0.21.0"
tqdm = "==4.66.5"
transformers = "==4.49.0"
warp-lang = "==1.7.2"
flash-attn = "==2.7.4.post1"
timm = "==1.0.19"
kiui = "==0.2.17"
lru-dict = "==1.3.0"
causal-conv1d = { git = "https://github.com/Dao-AILab/causal-conv1d", rev = "v1.4.0" }
gsplat = { git = "https://github.com/nerfstudio-project/gsplat.git", rev = "73fad53c31ec4d6b088470715a63f432990493de" }
fused-ssim = { git = "https://github.com/rahul-goel/fused-ssim/", rev = "8bdb59feb7b9a41b1fab625907cb21f5417deaac" }
mpi4py = "==4.1.0"
plyfile = "==1.1.2"
deepspeed = "==0.17.5"
accelerate = "==1.10.0"
openexr = "==3.2.3"

[environments]
lyra = { features = ["lyra"], no-default-feature = true }

pixi info output:

Error:   × failed to solve the pypi requirements of environment 'lyra' for platform 'linux-64'
  ├─▶ Failed to build `fused-ssim @ git+https://github.com/rahul-goel/fused-ssim/@8bdb59feb7b9a41b1fab625907cb21f5417deaac`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.prepare_metadata_for_build_wheel` failed (exit status: 1)

      [stderr]
      Traceback (most recent call last):
        File "<string>", line 14, in <module>
        File "/home/kwy/sourcecode/lyra/.pixi/envs/lyra/lib/python3.10/site-packages/setuptools/build_meta.py", line 380, in
      prepare_metadata_for_build_wheel
          self.run_setup()
        File "/home/kwy/sourcecode/lyra/.pixi/envs/lyra/lib/python3.10/site-packages/setuptools/build_meta.py", line 520,
      in run_setup
          super().run_setup(setup_script=setup_script)
        File "/home/kwy/sourcecode/lyra/.pixi/envs/lyra/lib/python3.10/site-packages/setuptools/build_meta.py", line 317,
      in run_setup
          exec(code, locals())
        File "<string>", line 2, in <module>
      ModuleNotFoundError: No module named 'torch'

      hint: This error likely indicates that `fused-ssim` depends on `torch`, but doesn't declare it as a build dependency.
      If `fused-ssim` is a first-party package, consider adding `torch` to its `build-system.requires`. Otherwise, either
      add it to your `pyproject.toml` under:

      [tool.uv.extra-build-dependencies]
      fused-ssim = ["torch"]

      or `uv pip install torch` into the environment and re-run with `--no-build-isolation`.

Other files (e.g. script files, source files, etc.):

Issue description

Even I have specified "no-build-isolation" in [pypi-options], it's still failed to install gsplat, fused-ssim, or causal-conv1d that depends on torch.

Expected behavior

The gsplat, fused-ssim, and causal-conv1d should be installed with no-build-isolation set to true and the torch is already installed in the environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedThe Pixi maintainers welcome contributions to solve this issue or implement the feature/bugfix.bugSomething isn't workinghelp wantedMaintainers would like community input

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions