Merge pull request #222 from thinking-tower/bugfix/python-installation-on-macos
Set PYTHON_INCLUDE_DIR and PYTHON_LIBRARY during installation
This commit is contained in:
commit
dccbe4abba
1 changed files with 6 additions and 2 deletions
8
setup.py
8
setup.py
|
|
@ -1,7 +1,8 @@
|
|||
import os
|
||||
import re
|
||||
import sys
|
||||
import platform
|
||||
import sys
|
||||
import sysconfig
|
||||
import subprocess
|
||||
|
||||
from setuptools import setup, Extension
|
||||
|
|
@ -43,7 +44,10 @@ class CMakeBuild(build_ext):
|
|||
'-DKOMPUTE_OPT_BUILD_PYTHON=1',
|
||||
'-DKOMPUTE_OPT_ENABLE_SPDLOG=0',
|
||||
'-DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1',
|
||||
'-DPYTHON_EXECUTABLE=' + sys.executable]
|
||||
'-DPYTHON_EXECUTABLE=' + sys.executable,
|
||||
'-DPYTHON_INCLUDE_DIR=' + sysconfig.get_path('include'),
|
||||
'-DPYTHON_LIBRARY=' + sysconfig.get_path('stdlib'),
|
||||
]
|
||||
|
||||
cfg = 'Debug' if self.debug else 'Release'
|
||||
build_args = ['--config', cfg]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue