pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Regression with license copying when installing from source

Open glemaitre opened this issue 10 months ago • 5 comments

Checks

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

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

Reproducible example

Given the minimal repo there: https://github.com/glemaitre/bug_pixi with the following structure:

.
├── package_1
│   ├── package_1
│   │   ├── pixi.lock
│   │   ├── pyproject.toml
│   │   ├── LICENSE.txt
│   │   └── src
│   │       └── package_1
│   │           ├── __init__.py
│   ├── pixi.lock
│   └── pixi.toml
├── package_2
│   ├── package_2
│   │   ├── pyproject.toml
│   │   ├── LICENSE.txt
│   │   └── src
│   │       └── package_2
│   │           ├── __init__.py
│   ├── pixi.lock
│   └── pixi.toml
└── README.md

While the issue in https://github.com/prefix-dev/pixi/issues/5125 is solved, now when building I'm getting the following error:

 │ ╭─ Packaging new files
 │ │ Copying done!
 │ │ Post-processing done!
 │ │ Writing test files
 │ │ Writing metadata for package
 │ │ Copying license files
 │ │
 │ ╰─────────────────── (took 1 second)
 │
 ╰─────────────────── (took 2 seconds)
Error:   × failed to build 'package_2' from '.'
  ╰─▶   × No license files were copied

when executing

cd package_2
pixi shell

I'm wondering if it is not the a similar issue as in https://github.com/prefix-dev/pixi/issues/4985

Issue description

See reproducible example

Expected behavior

No error

glemaitre avatar Jan 15 '26 21:01 glemaitre

Thanks! Yes we have this on the radar as a high priority bug and will try to fix & release tomorrow.

wolfv avatar Jan 15 '26 22:01 wolfv

hey @glemaitre !

We have released a new version of pixi-build-python (v0.4.5). Could you please clean the cache and try again? ( I've tried it locally and it works)

nichtmacho avatar Jan 19 '26 08:01 nichtmacho

I still encounter a similar error.

munechika-koyo avatar Jan 19 '26 14:01 munechika-koyo

@munechika-koyo any chance you can share a reproducer?

wolfv avatar Jan 19 '26 14:01 wolfv

@wolfv I tried to reproduce this issue using this tutorial project, and no error occurred. However, when I put the license information into prproject.toml like:

[project]
license-files = ["LICEN[CS]E.*"]

with the LICENSE file, the same error arose:

Error:   × failed to build 'python_rich' from '.'
  ╰─▶   × No license files were copied

munechika-koyo avatar Jan 21 '26 10:01 munechika-koyo