MCPcopy Create free account
hub / github.com/coldtype/st2 / install_coldtype

Function install_coldtype

ST2/importer.py:90–120  ·  view source on GitHub ↗
(context, global_vars, required_version)

Source from the content-addressed store, hash-verified

88
89
90def 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
123def install_extras(context, global_vars):

Callers 1

executeMethod · 0.85

Calls 1

get_venv_pythonFunction · 0.85

Tested by

no test coverage detected