Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-09-16 16:47:51 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-09-16 16:53:37 +0300
commit7042f4e4b2e3232da34fadfb83502d090809a211 (patch)
tree40aad78f53b9d533c78c4bb73a4625f8802952e2 /build_files/utils
parentc8b9ede4b1c2aef234553e1a455afbc31e96ebd4 (diff)
Fix Linux bpy wheel failing to install due to wrong ABI flags
Diffstat (limited to 'build_files/utils')
-rwxr-xr-xbuild_files/utils/make_bpy_wheel.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/utils/make_bpy_wheel.py b/build_files/utils/make_bpy_wheel.py
index 900868ea3d7..ba1d0f21937 100755
--- a/build_files/utils/make_bpy_wheel.py
+++ b/build_files/utils/make_bpy_wheel.py
@@ -210,8 +210,10 @@ def main() -> None:
if f.endswith(".whl"):
# No apparent way to override this ABI version with setuptools, so rename.
sys_py = "cp%d%d" % (sys.version_info.major, sys.version_info.minor)
+ sys_py_abi = sys_py + sys.abiflags
blender_py = "cp%d%d" % (python_version_number[0], python_version_number[1])
- renamed_f = f.replace(sys_py, blender_py)
+
+ renamed_f = f.replace(sys_py_abi, blender_py).replace(sys_py, blender_py)
os.rename(os.path.join(dist_dir, f), os.path.join(output_dir, renamed_f))