Caffe2 - Python API
A deep learning, cross platform ML framework
get_python_cmake_flags Namespace Reference

Module scripts.get_python_cmake_flags. More...


list flags

Detailed Description

Module scripts.get_python_cmake_flags.

Use this script to find your preferred python installation.

You can use the following to build with your preferred version of python if your installation is not being properly detected by CMake.

mkdir -p build && cd build cmake $(python ../scripts/ .. make

Variable Documentation

list get_python_cmake_flags.flags
Initial value:
1 = [
2  '-DPYTHON_EXECUTABLE:FILEPATH={}'.format(sys.executable),
3  '-DPYTHON_INCLUDE_DIR={}'.format(sysconfig.get_python_inc()),
4 ]

Definition at line 21 of file