Skip to content

Commit 547adf0

Browse files
committed
Update CPython version and SIP build configuration
Bumps CPython dependency from 3.12.2 to 3.12.7 and modifies SIP build tool configuration to use the full path to sip-build from the CPython Scripts directory for improved reliability.
1 parent 8fdbfdf commit 547adf0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

conanfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def export_sources(self):
7272
def requirements(self):
7373
for req in self.conan_data["requirements"]:
7474
self.requires(req)
75-
self.requires("cpython/3.12.2")
75+
self.requires("cpython/3.12.7")
7676

7777
def validate(self):
7878
if self.settings.compiler.cppstd:
@@ -120,7 +120,9 @@ def generate(self):
120120

121121
# Generate the Source code from SIP
122122
sip = self.python_requires["sipbuildtool"].module.SipBuildTool(self)
123-
sip.configure()
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)
124126
sip.build()
125127

126128
def layout(self):

0 commit comments

Comments
 (0)