Skip to content

Commit 7ed4c1d

Browse files
committed
Attempt to fix 3.13 windows build
1 parent 24c7314 commit 7ed4c1d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

relenv/build/windows.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ def build_python(env, dirs, logfp):
100100
dst=str(dirs.prefix / "Include"),
101101
dirs_exist_ok=True,
102102
)
103-
shutil.copy(
104-
src=str(dirs.source / "PC" / "pyconfig.h"),
105-
dst=str(dirs.prefix / "Include"),
106-
)
103+
if "3.13" not in env["RELENV_PY_MAJOR_VERSION"]:
104+
shutil.copy(
105+
src=str(dirs.source / "PC" / "pyconfig.h"),
106+
dst=str(dirs.prefix / "Include"),
107+
)
107108

108109
# Copy library files
109110
shutil.copytree(

0 commit comments

Comments
 (0)