CreateAndInstallWheel.cmake

# CreateAndInstallWheel.cmake
#     Python2_EXECUTABLE = path to the python executable
#     PACKAGE = path to the package.  This folder should contain a file named setup.py

execute_process(COMMAND ${Python2_EXECUTABLE} setup.py bdist_wheel WORKING_DIRECTORY ${PACKAGE})
file(GLOB wheelFiles "${PACKAGE}/dist/*.whl")
execute_process(COMMAND ${Python2_EXECUTABLE} -m pip install --upgrade --no-deps --force-reinstall ${wheelFiles})
file(TOUCH ${PACKAGE}/dist/installed_witness)