From d63cfc35518a84ed038426d10ac882029d482091 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Thu, 27 Apr 2023 11:51:52 +0100 Subject: [PATCH] Use pyproject.toml to specify build dependencies --- README.md | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/README.md b/README.md index 97483270c..ccc022b22 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ pip install flash-attn Alternatively you can compile from source: ``` -python setup.py install +python -m pip install . ``` Interface: `src/flash_attention.py` diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..433e16a48 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["packaging", "setuptools", "torch", "wheel"] +build-backend = "setuptools.build_meta" \ No newline at end of file