Co-authored-by: Antoni Baum <antoni.baum@protonmail.com>
This commit is contained in:
parent
63b2206ad0
commit
f07c1ceaa5
@ -18,6 +18,11 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
|||||||
# image to build pytorch extensions
|
# image to build pytorch extensions
|
||||||
FROM dev AS build
|
FROM dev AS build
|
||||||
|
|
||||||
|
# install build dependencies
|
||||||
|
COPY requirements-build.txt requirements-build.txt
|
||||||
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
|
pip install -r requirements-build.txt
|
||||||
|
|
||||||
# copy input files
|
# copy input files
|
||||||
COPY csrc csrc
|
COPY csrc csrc
|
||||||
COPY setup.py setup.py
|
COPY setup.py setup.py
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
|
# Should be mirrored in requirements-build.txt
|
||||||
requires = [
|
requires = [
|
||||||
"ninja",
|
"ninja",
|
||||||
"packaging",
|
"packaging",
|
||||||
"setuptools",
|
"setuptools >= 49.4.0",
|
||||||
"torch >= 2.1.0",
|
"torch >= 2.1.0",
|
||||||
"wheel",
|
"wheel",
|
||||||
]
|
]
|
||||||
|
|||||||
6
requirements-build.txt
Normal file
6
requirements-build.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Should be mirrored in pyproject.toml
|
||||||
|
ninja
|
||||||
|
packaging
|
||||||
|
setuptools>=49.4.0
|
||||||
|
torch>=2.1.0
|
||||||
|
wheel
|
||||||
Loading…
Reference in New Issue
Block a user