Loosen compiler requirement at startup
Hi,
when starting pystencils on a Win10 machine with no VS installed, I get the output below which is quite verbose but pretty much the issue is that Visual Studio compilers are not installed. This is a pretty strict requirement since MSVC can be hard to license / install in a corporate framework. (Side remark: Installation can be performed hacking mingw in or just using conda)
I would like to ask the following:
- Would it be possible to use (many) of the functions, e.g. assignments and kernels, especially display, without a compiler?
- If (see docs) numba / llvm is supported, cna even the compilation be performed without a C compiler?
- And so: Wouldn't it be an option to perform the check for a compiler later on, making the package usable if no MSVC is installed?
and lastly:
- I can't seem to find documentation on where a config file is located or what the syntax might be to explicitly explained to specify the compiler to use (
mingw gcc
?)
import pystencils as ps
Traceback (most recent call last):
File "C:\...\pystencils\cpu\msvc_detection.py", line 21, in get_environment
version_nr = find_latest_msvc_version_using_environment_variables()
File "C:\...\pystencils\cpu\msvc_detection.py", line 45, in find_latest_msvc_version_using_environment_variables
raise ValueError("Visual Studio not found.")
ValueError: Visual Studio not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
... longer traceback ...
ValueError: Visual Studio not found. Write path to VS folder in pystencils config