blob: c5c9e578ce5fac6442ea908fb5a2f062b1436b3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
diff --color -ura a/pymc3/__init__.py b/pymc3/__init__.py
--- a/pymc3/__init__.py 2024-05-31 20:35:08.000000000 +0800
+++ b/pymc3/__init__.py 2024-06-05 02:13:41.161755884 +0800
@@ -20,27 +20,27 @@
import platform
import warnings
-import numpy.distutils
+#import numpy.distutils
import semver
# Workaround for Theano bug that tries to access blas_opt_info;
# must be done before importing theano.
# https://github.com/pymc-devs/pymc/issues/5310
# Copied from theano/link/c/cmodule.py: default_blas_ldflags()
-if (
- hasattr(numpy.distutils, "__config__")
- and numpy.distutils.__config__
- and not hasattr(numpy.distutils.__config__, "blas_opt_info")
-):
- import numpy.distutils.system_info # noqa
-
- # We need to catch warnings as in some cases NumPy print
- # stuff that we don't want the user to see.
- with warnings.catch_warnings(record=True):
- numpy.distutils.system_info.system_info.verbosity = 0
- blas_info = numpy.distutils.system_info.get_info("blas_opt")
-
- numpy.distutils.__config__.blas_opt_info = blas_info
+#if (
+# hasattr(numpy.distutils, "__config__")
+# and numpy.distutils.__config__
+# and not hasattr(numpy.distutils.__config__, "blas_opt_info")
+#):
+# import numpy.distutils.system_info # noqa
+#
+# # We need to catch warnings as in some cases NumPy print
+# # stuff that we don't want the user to see.
+# with warnings.catch_warnings(record=True):
+# numpy.distutils.system_info.system_info.verbosity = 0
+# blas_info = numpy.distutils.system_info.get_info("blas_opt")
+#
+# numpy.distutils.__config__.blas_opt_info = blas_info
import theano
|