Copy license file to directory temporarily during Python build
envgap__google__flatbuffers-8789
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
ac7ef1176aaef43289c594250bc423d82aa5a19d- Manifest
python/setup.py- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
google/flatbuffers #8789 · read the original issue
Specifying files outside of the Python project root directory (the one containing the pyproject.toml/setup.py file), in your case the license file `../LICENSE`, is deprecated and scheduled for removal on 20 March 2026. See [packaging specs](https://packaging.python.org/en/latest/specifications/glob-patterns/).
Initially mentioned in #8731
<details><summary>Warning from setuptools</summary>
```text
/tmp/build-env-k8xazfj3/lib/python3.14/site-packages/setuptools/dist.py:483: SetuptoolsDeprecationWarning: Pattern '../LICENSE' cannot contain '..'
!!
********************************************************************************
Please ensure the files specified are contained by the root
of the Python package (normally marked by `pyproject.toml`).
By 2026-Mar-20, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/specifications/glob-patterns/ for details.
********************************************************************************
!!
for path in sorted(cls._find_pattern(pattern, enforce_match))
```
</details> 04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]