Skip to content

Commit 4eec78c

Browse files
committed
Add extra condition (unnecessary) to make the behaviour more obvious
1 parent 0798841 commit 4eec78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PC/layout/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ def main():
671671

672672
expect = f"{VER_MAJOR}.{VER_MINOR}.{VER_MICRO}{VER_SUFFIX}"
673673
actual = check_patchlevel_version(ns.source)
674-
if actual:
674+
if actual and actual != expect:
675675
log_error(f"Inferred version {expect} does not match {actual} from patchlevel.h. "
676676
"You should set %PYTHONINCLUDE% or %PYTHON_HEXVERSION% before launching.")
677677
return 5

0 commit comments

Comments
 (0)