Skip to content

Commit d928dd9

Browse files
committed
Improve sip-build path detection for cross-platform use
Replaces hardcoded Windows-specific sip-build path with auto-detection using the CPython dependency, making the SIP build process cross-platform compatible.
1 parent 547adf0 commit d928dd9

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
@@ -120,9 +120,8 @@ def generate(self):
120120

121121
# Generate the Source code from SIP
122122
sip = self.python_requires["sipbuildtool"].module.SipBuildTool(self)
123-
# Use the full path to sip-build from the CPython Scripts directory
124-
sip_build_path = os.path.join(self.dependencies["cpython"].cpp_info.bindirs[0], "Scripts", "sip-build.exe")
125-
sip.configure(sip_install_executable=sip_build_path)
123+
# Auto-detect sip-build from CPython dependency (cross-platform)
124+
sip.configure(cpython_dependency=self.dependencies["cpython"])
126125
sip.build()
127126

128127
def layout(self):

0 commit comments

Comments
 (0)