mirror of https://github.com/davisking/dlib.git
Made setup.py always set PYTHON_INCLUDE_DIR and PYTHON_LIBRARY based on
distutils environment variables for all versions of python, not just conda.
This commit is contained in:
parent
d0726637f5
commit
de13fdeb5a
2
setup.py
2
setup.py
|
@ -505,8 +505,6 @@ class build(_build):
|
||||||
# make sure build artifacts are generated for the version of Python currently running
|
# make sure build artifacts are generated for the version of Python currently running
|
||||||
cmake_extra_arch = []
|
cmake_extra_arch = []
|
||||||
|
|
||||||
if 'conda' in sys.version:
|
|
||||||
# to support conda distribution
|
|
||||||
from distutils.sysconfig import get_python_inc
|
from distutils.sysconfig import get_python_inc
|
||||||
import distutils.sysconfig as sysconfig
|
import distutils.sysconfig as sysconfig
|
||||||
cmake_extra_arch += ['-DPYTHON_INCLUDE_DIR=' + get_python_inc()]
|
cmake_extra_arch += ['-DPYTHON_INCLUDE_DIR=' + get_python_inc()]
|
||||||
|
|
Loading…
Reference in New Issue