Skip to content

Commit b16baaf

Browse files
committed
Improve sip-build detection for cross-platform support
Replaces hardcoded sip-build path with auto-detection using the CPython dependency, making the build process more robust and platform-independent.
1 parent da2113a commit b16baaf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

conanfile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@ def generate(self):
124124

125125
# Generate the Source code from SIP
126126
tc = self.python_requires["sipbuildtool"].module.SipBuildTool(self)
127-
# Use the full path to sip-build from the CPython Scripts directory
128-
sip_build_path = os.path.join(self.dependencies["cpython"].cpp_info.bindirs[0], "Scripts", "sip-build.exe")
129-
tc.configure(sip_install_executable=sip_build_path)
127+
# Auto-detect sip-build from CPython dependency (cross-platform)
128+
tc.configure(cpython_dependency=self.dependencies["cpython"])
130129
tc.build()
131130

132131
def layout(self):

0 commit comments

Comments
 (0)