Skip to content

Commit

Permalink
precompile mod files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiliç Ilkan Fabrice committed Feb 7, 2024
1 parent d067863 commit e4f60c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .compile_mod.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

set -e

INSTALL_DIR=$1
MOD_DIR=$2

cd ${INSTALL_DIR}

echo "Building mod files"
rm -rf x86_64
nrnivmodl ${MOD_DIR} >nrnivmodl.log 2>&1
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ deps =
extras =
neo
usedevelop=True
allowlist_externals =
make
./.compile_mod.sh
setenv =
NEURON_MODULE_OPTIONS='-nogui'
OMP_NUM_THREADS=1
commands =
make clean
./.compile_mod.sh . examples/sonata-network/mechanisms
pytest -sx -n auto tests


Expand Down

0 comments on commit e4f60c3

Please sign in to comment.