Skip to content
Snippets Groups Projects
Commit 38eb0feb authored by AlQuemist's avatar AlQuemist
Browse files

mk_pypack_macos.zsh: fix regexp to extract the Python library

parent a90186e1
No related branches found
No related tags found
3 merge requests!2050rebase main on r21/v21.1,!2047<root>/CMakeLists.txt: add 'BornAgain_LIBRARIES' cached variable to store...,!2029Fix MacOS packaging scripts for r21.1
...@@ -164,7 +164,7 @@ function get_python_dependence ...@@ -164,7 +164,7 @@ function get_python_dependence
# regexp to correct the Python dependence; eg.: # regexp to correct the Python dependence; eg.:
# '/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python' => 'libpython3.9.dylib' # '/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python' => 'libpython3.9.dylib'
# '/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/libpython3.9.dylib' => 'libpython3.9.dylib' # '/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/libpython3.9.dylib' => 'libpython3.9.dylib'
pylib_re='s;.*[pP]ython.+[Vv]ersions/([0-9.]+).+(Python|libpython).*;libpython\1.dylib;' pylib_re='s;.+/(Python|libpython)([0-9.]+)\.dylib;libpython\2.dylib;'
# obtain the dependencies # obtain the dependencies
pydeps0=$(dylib_deps "$1") pydeps0=$(dylib_deps "$1")
pydepends_fullpath=$(echo "$pydeps0" | sed -nE $py_fmwk_re) pydepends_fullpath=$(echo "$pydeps0" | sed -nE $py_fmwk_re)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment