Skip to content

Commit

Permalink
Fix CI build failure.
Browse files Browse the repository at this point in the history
moving the lib64 to lib unconditionally causes the build to fail when
the 2nd wheel is getting built, because then the destination directory
exists. We also moved to copying instead of moving, because that will
prevent the mbedtls lib from doing extra work when it finds out that its
targets are missing.
  • Loading branch information
Cody Piersall committed Jan 11, 2024
1 parent 2a391cb commit 633577a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def finalize_build(self):
# using GnuInstallDirs. Couldn't build to verify but likely enough.
src = f"{THIS_DIR}/mbedtls/prefix/lib64"
dst = f"{THIS_DIR}/mbedtls/prefix/lib"
if os.path.exists(src):
shutil.move(src, dst)
if os.path.exists(src) and not os.path.exists(dst):
shutil.copytree(src, dst)


class BuildBuild(build_ext):
Expand Down

0 comments on commit 633577a

Please sign in to comment.