summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/sgpp/disable_disutils_deprecation_warning.patch
blob: 32fc5bc235d6ba2d47ac66adf59f7769556bf647 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/site_scons/SGppConfigure.py b/site_scons/SGppConfigure.py
index e5f54931f..2b0adc82a 100644
--- a/site_scons/SGppConfigure.py
+++ b/site_scons/SGppConfigure.py
@@ -3,7 +3,8 @@
 # use, please see the copyright notice provided with SG++ or at
 # sgpp.sparsegrids.org
 
-
+import warnings
+warnings.filterwarnings("ignore", category=DeprecationWarning) 
 import distutils.sysconfig
 import errno
 import os
@@ -311,6 +312,8 @@ def checkPython(config):
         raise Exception("Python 3 is required for SGpp python support!")
       
     pythonpath = getOutput(["python3", "-c",
+          "import warnings; "
+          "warnings.filterwarnings(\"ignore\", category=DeprecationWarning); " 
           "import distutils.sysconfig; "
           "print(distutils.sysconfig.get_python_inc())"])
     package = "python3-dev"