Skip to content

Commit

Permalink
sysconfig provenance requires major.minor in libpython name. (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Dec 8, 2020
1 parent c00fbe3 commit 5b6c318
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/nrnpyenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,9 @@ def nrnpylib_linux():
libdir=sysconfig.get_config_var("LIBDIR")
try:
from os.path import isfile, join
ver = "%d.%d"%(sys.version_info[0], sys.version_info[1])
for f in os.listdir(libdir):
if 'libpython' in f and '.so' in f:
if 'libpython' in f and '.so' in f and ver in f:
nrn_pylib = join(libdir, f)
nrnpylib_provenance='sysconfig LIBDIR'
return nrn_pylib
Expand Down

0 comments on commit 5b6c318

Please sign in to comment.