Skip to content

Commit

Permalink
Bugfix with asciitoh5 package (#995)
Browse files Browse the repository at this point in the history
- special can't be moved to binary as libnrnmech.so needs
   to be in same directory
 - use symlink rather than duplicating binary
  • Loading branch information
pramodk authored Dec 23, 2020
1 parent f59134e commit 72a5aff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions var/spack/repos/builtin/packages/asciitoh5/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ def install(self, spec, prefix):
include_flag = ' -I%s' % (spec['hdf5'].prefix.include)
which('nrnivmodl')('-incflags', include_flag, '-loadflags',
link_flag, 'lib/mod')
bindir = os.path.basename(self.nrnivmodl_outdir)
special = join_path(bindir, 'special')
shutil.copy(special, prefix.bin)
archdir = os.path.basename(self.nrnivmodl_outdir)
src = join_path(prefix, archdir, 'special')
dest = join_path(prefix.bin, 'special')
symlink(src, dest)

def setup_run_environment(self, env):
env.set('HOC_LIBRARY_PATH', self.prefix.lib.hoc)
Expand Down

0 comments on commit 72a5aff

Please sign in to comment.