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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_blend_utils/install_whl.py')
-rwxr-xr-xio_blend_utils/install_whl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/io_blend_utils/install_whl.py b/io_blend_utils/install_whl.py
index 86a8aa5d..e1af5a48 100755
--- a/io_blend_utils/install_whl.py
+++ b/io_blend_utils/install_whl.py
@@ -90,6 +90,7 @@ def copy_files(target: pathlib.Path):
def find_version(target: pathlib.Path):
import json
+ import shutil
print('Obtaining version number from wheel.')
@@ -97,6 +98,9 @@ def find_version(target: pathlib.Path):
with (distinfo / 'metadata.json').open() as infofile:
metadata = json.load(infofile)
+ print('Wiping dist-info directory.')
+ shutil.rmtree(str(distinfo))
+
# "1.2.3" -> (1, 2, 3)
str_ver = metadata['version']
return tuple(int(x) for x in str_ver.split('.'))