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

fix snudda tests

parent 14b82769
No related branches found
No related tags found
No related merge requests found
......@@ -29,3 +29,14 @@ class PySnudda(PythonPackage):
depends_on("py-psutil", type=("build","run"))
depends_on("py-cython", type=("build","run"))
depends_on("py-numba@0.53.1:", type=("build","run"))
# snudda tarballs in pypi do not include the tests/ dir: just use default spack tests for now
# @run_after('install')
# @on_package_attributes(run_tests=True)
# def install_test(self):
# python('-m', 'unittest', 'discover', '-v', '-s' './tests')
# blender is for now an optional dependency: leave out of import_modules to avoid errors in tests
import_modules = ['snudda', 'snudda.utils', 'snudda.neurons', 'snudda.plotting', 'snudda.analyse', 'snudda.simulate', 'snudda.place', 'snudda.prune', 'snudda.neuromodulation', 'snudda.input', 'snudda.init', 'snudda.detect']
# TODO: for Spack>v0.19.0, skip_modules can be used instead
# skip_modules = ['snudda.plotting.Blender', 'snudda.plotting.Blender.io_mesh_swc', 'snudda.plotting.Blender.visualisation']
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