-
Eleni Mathioulaki authored
and use source from github, because pypi archives are already patched
69bd1d6c
cython3.patch 632 B
diff --git a/setup.py b/setup.py
index 297746d..b52cf8b 100644
--- a/setup.py
+++ b/setup.py
@@ -21,11 +21,14 @@ else:
use_cython = True
-class numpy_include(object):
- """Defers import of numpy until install_requires is through"""
- def __str__(self):
- import numpy
- return numpy.get_include()
+class numpy_include(os.PathLike):
+ """Defers import of numpy until install_requires is through"""
+ def __str__(self):
+ import numpy
+ return numpy.get_include()
+
+ def __fspath__(self):
+ return str(self)
if os.path.isfile("pyspike/cython/cython_add.c") and \