Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Jul 24, 2024
1 parent d21943c commit 8b98dc6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,15 @@ def _python_site_packages():

def _python_lib():
if _platform() == 'macos':
python_lib = '`python3-config --ldflags --embed`'
libs = ['-L/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin -lpython3.10',
'-L/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/config-3.11-darwin -lpython3.11',
'-L/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/config-3.12-darwin -lpython3.12',
'-L/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin -lpython3.10',
'-L/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11/config-3.11-darwin -lpython3.11',
'-L/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/lib/python3.12/config-3.12-darwin -lpython3.12',
'`python3-config --ldflags --embed`']
#python_lib += '`python3-config --ldflags --embed`'
python_lib = ' '.join(libs)
elif _platform() == 'linux':
python_lib = ''
elif _platform() == 'windows':
Expand Down

0 comments on commit 8b98dc6

Please sign in to comment.