Skip to content
Snippets Groups Projects
Commit 69bd1d6c authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

feat(py-pyspike): patch for py-cython@3

and use source from github, because pypi archives are already patched
parent 999bfd27
No related branches found
No related tags found
2 merge requests!651create new experimental release,!650update spack version to v0.23.1
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 \
......@@ -12,15 +12,17 @@ class PyPyspike(PythonPackage):
"""
homepage = "https://github.com/mariomulansky/PySpike"
pypi = 'pyspike/pyspike-0.7.0.tar.gz'
url = 'https://github.com/mariomulansky/PySpike/archive/refs/tags/0.8.0.tar.gz'
maintainers = ['dionperd', 'paulapopa', "ldomide"]
version('0.8.0', '76137b861ed531608aaf55af1a5ebf8a586e98653dab2467b4c1da7b2d9aa4e5')
version('0.7.0', 'a5d1c1472d3e7c3ac85c8a4ce069d750cca02acf18f185677b29c0a757e78efe')
version('0.8.0', '199d41af097e0b6e6583e22d4a9c3cedab51ceba4da2d940682ffefe8120a414')
version('0.7.0', '47031ba10a5726845982b62dcae970449ca50c4be9985a1ed0d2a021456bf25a')
patch("cython3.patch", when="^py-cython@3:")
# python_requires
depends_on('python@3.8:3.10', type=('build', 'run'))
depends_on('python@3.8:', type=('build', 'run'))
# setup_requires
depends_on('py-pip', type='build')
......@@ -31,10 +33,10 @@ class PyPyspike(PythonPackage):
depends_on('py-scipy', type=('build', 'run'))
depends_on('py-matplotlib', type=('build', 'run'))
depends_on('py-pytest', type=('build', 'run'))
depends_on('py-cython@:2', type=('build', 'run'))
depends_on('py-cython', type=('build', 'run'))
# Test dependency
depends_on('py-pytest@:7.1', type='test')
depends_on('py-pytest', type='test')
@run_after('install')
@on_package_attributes(run_tests=True)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment