--- a/setup.py.orig	2022-11-11 23:48:30.000000000 +0800
+++ b/setup.py	2022-11-13 17:38:40.683349300 +0800
@@ -214,7 +214,7 @@
 
     def run(self):
         build_ext.run(self)
-        if sys.platform == "win32":
+        if sys.platform == "win32" and "MSC" in sys.version:
             self._copy_windows_dlls()
 
     def _copy_windows_dlls(self):
@@ -256,7 +256,7 @@
 
     env = os.environ
     target_cpu = None
-    if sys.platform == "win32":
+    if sys.platform == "win32" and "MSC" in sys.version:
         from distutils._msvccompiler import _get_vc_env
 
         # for Windows, we want to build a shared skia.dll. If we build a static lib
