From 08f26ddfeeab891b91bb4f586b2e328e3ef5f2e0 Mon Sep 17 00:00:00 2001 From: "junam.song" Date: Wed, 22 Apr 2026 16:19:55 +0900 Subject: [PATCH] build(uv_unwrapper,texture_baker): add pyproject.toml declaring torch build-dep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both subpackages' setup.py does `import torch` and `from torch.utils.cpp_extension import BuildExtension, CppExtension, CUDAExtension` at module import time. Because neither subdirectory ships a pyproject.toml, pip/uv fall back to the default PEP 517 build env that only contains setuptools + wheel — no torch. As a result, `pip install git+URL#subdirectory=uv_unwrapper` (and likewise for texture_baker) fails in any clean environment with: ModuleNotFoundError: No module named 'torch' Add a minimal pyproject.toml to each subpackage declaring torch as a build-system requirement so the isolated build env has torch available. The existing setup.py is untouched. --- texture_baker/pyproject.toml | 3 +++ uv_unwrapper/pyproject.toml | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 texture_baker/pyproject.toml create mode 100644 uv_unwrapper/pyproject.toml diff --git a/texture_baker/pyproject.toml b/texture_baker/pyproject.toml new file mode 100644 index 0000000..c8f7f2d --- /dev/null +++ b/texture_baker/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=61", "wheel", "torch"] +build-backend = "setuptools.build_meta" diff --git a/uv_unwrapper/pyproject.toml b/uv_unwrapper/pyproject.toml new file mode 100644 index 0000000..c8f7f2d --- /dev/null +++ b/uv_unwrapper/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=61", "wheel", "torch"] +build-backend = "setuptools.build_meta"