Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/python/py-numpy/src/patches/06-setup-setuptools.patch
1067 views
1
--- native/setup.py 2022-12-25 19:52:53
2
+++ wasm/setup.py 2023-02-03 08:21:35
3
@@ -1,8 +1,13 @@
4
#!/usr/bin/env python3
5
"""
6
-Numpy build options can be modified with a site.cfg file.
7
+Numpy build options can be modified with a site.cfg file.
8
See site.cfg.example for a template and more information.
9
"""
10
+
11
+# COWASM -- we explicitly import setuptools first before anything else. There's
12
+# a huge warning at startup if we don't do this, and then distutils gets messed up
13
+# with weird C++ compiler issues, etc. This conflicts with the comments below... but works?
14
+import setuptools
15
16
import os
17
from pathlib import Path
18
19