I'd like to use python copperhead for CUDA C++ prototyping, which requires MSVC++14, and I want to make copperhead work first without CUDA. I've installed Microsoft Build Tools 2015 and tried to generate the hello world example from https://pypi.org/project/copperhead/, but I got an error message shown below. I don't want to install Visual Studio, if possible.
I installed MS Build Tools 2015 (build 14.0.23107.10), I am not sure if this is what I am supposed to install... I installed copperhead via pip on python 3.7.2.
import copperhead as cpp
hello_world_cpp = '''
#include <iostream>
void hello_world()
{
std::cout << "Hello World!" << std::endl;
}'''
hello_world = cpp.generate('hello_world', 'void()', hello_world_cpp)
hello_world()
running install
running bdist_egg
running egg_info
writing hello_world.egg-info\PKG-INFO
writing dependency_links to hello_world.egg-info\dependency_links.txt
writing top-level names to hello_world.egg-info\top_level.txt
reading manifest file 'hello_world.egg-info\SOURCES.txt'
writing manifest file 'hello_world.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
building 'hello_world' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/