Regression with license copying when installing from source
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
Thanks! Yes we have this on the radar as a high priority bug and will try to fix & release tomorrow.
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)
I still encounter a similar error.
@munechika-koyo any chance you can share a reproducer?
@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