summarylogtreecommitdiffstats
path: root/fix_get_numpy_include.patch
blob: 1f760c68126f02168d1d5b2eb623bb8efbe9a32e (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
diff -ru openTSNE-1.0.0.orig/setup.py openTSNE-1.0.0/setup.py
--- openTSNE-1.0.0.orig/setup.py	2023-08-11 13:36:22.222050683 +0200
+++ openTSNE-1.0.0/setup.py	2023-08-11 13:36:44.962034085 +0200
@@ -55,17 +55,10 @@
             writer.write(body, resources, nb_name)
 
 
-class get_numpy_include:
-    """Helper class to determine the numpy include path
-
-    The purpose of this class is to postpone importing numpy until it is
-    actually installed, so that the ``get_include()`` method can be invoked.
-
-    """
-    def __str__(self):
-        import numpy
-        return numpy.get_include()
-
+def get_numpy_include():
+    """get the numpy includes without wrapper class"""
+    import numpy
+    return numpy.get_include()
 
 def get_include_dirs():
     """Get include dirs for the compiler."""