File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ check-deps: ## Check and install required Python formatting dependencies
10
10
@command -v black > /dev/null 2>&1 || (echo " Installing black..." && pip install black)
11
11
12
12
install-deps : # # Install Python formatting tools (isort and black)
13
- pip install isort black
13
+ pip install scikit-build-core isort black
14
14
15
15
tree : # # Show project directory structure
16
16
@tree --prune -I " __pycache__|*.egg-info|*.so|build|3rdparty|dist"
@@ -23,10 +23,10 @@ ln: submodule ## Create compilation database
23
23
24
24
25
25
install : submodule # # Install package in development mode
26
- @pip install -e .
26
+ @pip install -e . --no-build-isolation
27
27
28
- build : submodule # # Build and install wheel package
29
- @rm -rf dist/* || true && export MAX_JOBS=$(nproc ) && uv build --wheel -Cbuild-dir=build . --verbose --color=always && pip3 install dist/* whl --force-reinstall --no-deps
28
+ build : install-deps submodule # # Build and install wheel package
29
+ @rm -rf dist/* || true && export MAX_JOBS=$(nproc ) && uv build --wheel -Cbuild-dir=build . --verbose --color=always --no-build-isolation && pip3 install dist/* whl --force-reinstall --no-deps
30
30
31
31
clean : # # Remove build artifacts
32
32
@rm -rf build dist * .egg-info
Original file line number Diff line number Diff line change @@ -18,14 +18,28 @@ docker run --rm \
18
18
-v $( pwd) :/sgl-kernel \
19
19
${DOCKER_IMAGE} \
20
20
bash -c "
21
+ # Install CMake (version >= 3.26) - Robust Installation
22
+ export CMAKE_VERSION_MAJOR=3.31
23
+ export CMAKE_VERSION_MINOR=1
24
+ echo \" Downloading CMake from: https://cmake.org/files/v\$ {CMAKE_VERSION_MAJOR}/cmake-\$ {CMAKE_VERSION_MAJOR}.\$ {CMAKE_VERSION_MINOR}-linux-x86_64.tar.gz\"
25
+ wget https://cmake.org/files/v\$ {CMAKE_VERSION_MAJOR}/cmake-\$ {CMAKE_VERSION_MAJOR}.\$ {CMAKE_VERSION_MINOR}-linux-x86_64.tar.gz
26
+ tar -xzf cmake-\$ {CMAKE_VERSION_MAJOR}.\$ {CMAKE_VERSION_MINOR}-linux-x86_64.tar.gz
27
+ mv cmake-\$ {CMAKE_VERSION_MAJOR}.\$ {CMAKE_VERSION_MINOR}-linux-x86_64 /opt/cmake
28
+ export PATH=/opt/cmake/bin:\$ PATH
29
+
30
+ # Debugging CMake
31
+ echo \" PATH: \$ PATH\"
32
+ which cmake
33
+ cmake --version
34
+
21
35
${PYTHON_ROOT_PATH} /bin/${TORCH_INSTALL} && \
22
- ${PYTHON_ROOT_PATH} /bin/pip install --no-cache-dir ninja setuptools==75.0.0 wheel==0.41.0 numpy uv && \
36
+ ${PYTHON_ROOT_PATH} /bin/pip install --no-cache-dir ninja setuptools==75.0.0 wheel==0.41.0 numpy uv scikit-build-core && \
23
37
export TORCH_CUDA_ARCH_LIST='7.5 8.0 8.9 9.0+PTX' && \
24
38
export CUDA_VERSION=${CUDA_VERSION} && \
25
39
mkdir -p /usr/lib/x86_64-linux-gnu/ && \
26
40
ln -s /usr/local/cuda-${CUDA_VERSION} /targets/x86_64-linux/lib/stubs/libcuda.so /usr/lib/x86_64-linux-gnu/libcuda.so && \
27
41
cd /sgl-kernel && \
28
42
ls -la ${PYTHON_ROOT_PATH} /lib/python${PYTHON_VERSION} /site-packages/wheel/ && \
29
- PYTHONPATH=${PYTHON_ROOT_PATH} /lib/python${PYTHON_VERSION} /site-packages ${PYTHON_ROOT_PATH} /bin/python -m uv build --wheel -Cbuild-dir=build . --color=always && \
43
+ PYTHONPATH=${PYTHON_ROOT_PATH} /lib/python${PYTHON_VERSION} /site-packages ${PYTHON_ROOT_PATH} /bin/python -m uv build --wheel -Cbuild-dir=build . --color=always --no-build-isolation && \
30
44
./rename_wheels.sh
31
45
"
You can’t perform that action at this time.
0 commit comments