[all-commits] [llvm/llvm-project] 7b4b15: [lit] Add pyproject.toml and fix build w/ modern s...
Michał Górny via All-commits
all-commits at lists.llvm.org
Mon Oct 31 23:30:29 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7b4b15042d2b9f513dc23a951e4a6e92492894e3
https://github.com/llvm/llvm-project/commit/7b4b15042d2b9f513dc23a951e4a6e92492894e3
Author: Michał Górny <mgorny at gentoo.org>
Date: 2022-11-01 (Tue, 01 Nov 2022)
Changed paths:
A llvm/utils/lit/pyproject.toml
M llvm/utils/lit/setup.py
Log Message:
-----------
[lit] Add pyproject.toml and fix build w/ modern setuptools backend
Add a `pyproject.toml` file that provides build system information
for PEP 517-compliant builders. While all the commonly used builders
provide fallback to running `setup.py` for backwards compatibility, this
ensures the best forward compatibility. It also provides a reliable way
of specifying the minimum required setuptools version. Effectively, it
will make it possible to remove `setup.py` in favor of purely
declarative configuration in the future, or even switch to a different
build system.
Update `setup.py` to explicitly add the current directory to `sys.path`
for importing `lit`. This is necessary, as the modern setuptools
backend does not guarantee that the current directory is present there.
Differential Revision: https://reviews.llvm.org/D136976
More information about the All-commits
mailing list