Remove wheel installation
- Blender should handle this for us, we were installing system wide which is bad.
This commit is contained in:
+1
-17
@@ -18,23 +18,7 @@ def register():
|
|||||||
if version[0] > 4 or (version[0] == 4 and version[1] >= 5):
|
if version[0] > 4 or (version[0] == 4 and version[1] >= 5):
|
||||||
show_version_error_popup()
|
show_version_error_popup()
|
||||||
return
|
return
|
||||||
|
|
||||||
# Add wheel installation check
|
|
||||||
try:
|
|
||||||
import lz4
|
|
||||||
except ImportError:
|
|
||||||
import os
|
|
||||||
import site
|
|
||||||
import pip
|
|
||||||
wheels_dir = os.path.join(os.path.dirname(__file__), "wheels")
|
|
||||||
if os.path.exists(wheels_dir):
|
|
||||||
for wheel in os.listdir(wheels_dir):
|
|
||||||
if wheel.endswith(".whl"):
|
|
||||||
pip.main(['install', os.path.join(wheels_dir, wheel)])
|
|
||||||
|
|
||||||
# Refresh site packages without modifying sys.path
|
|
||||||
site.addsitedir(site.getsitepackages()[0])
|
|
||||||
|
|
||||||
print("Starting registration")
|
print("Starting registration")
|
||||||
|
|
||||||
# Import modules using relative imports
|
# Import modules using relative imports
|
||||||
|
|||||||
Reference in New Issue
Block a user