(context, global_vars, required_version)
| 88 | |
| 89 | |
| 90 | def install_coldtype(context, global_vars, required_version): |
| 91 | print("---"*20) |
| 92 | print("> INSTALLING COLDTYPE") |
| 93 | print("---"*20) |
| 94 | |
| 95 | time.sleep(0.25) |
| 96 | |
| 97 | _, venv_python = get_venv_python() |
| 98 | |
| 99 | run([venv_python, "-m", "pip", "install", f"coldtype-core=={required_version}", "--no-cache-dir"]) |
| 100 | |
| 101 | #run([venv_python, "-m", "pip", "install", "pyobjc"]) |
| 102 | |
| 103 | run([venv_python, "-m", "pip", "freeze"]) |
| 104 | time.sleep(0.25) |
| 105 | |
| 106 | return |
| 107 | |
| 108 | print("---"*20) |
| 109 | print("/installed coldtype") |
| 110 | |
| 111 | time.sleep(0.25) |
| 112 | print("/imported successfully") |
| 113 | |
| 114 | import coldtype as C |
| 115 | import coldtype.text as ct |
| 116 | import coldtype.blender as cb |
| 117 | importlib.reload(C) |
| 118 | importlib.reload(cb) |
| 119 | importlib.reload(ct) |
| 120 | print(">>>", C.__version__) |
| 121 | |
| 122 | |
| 123 | def install_extras(context, global_vars): |
no test coverage detected