◐ Shell
clean mode source ↗

Message 323456 - Python tracker

Confirmed still broken in 3.6.3.

I ran into this when running CFFI. It does very wrong things with the path to cl.exe and include files with path spaces.

My workaround is to monkeypatch distutils.ccompiler.gen_preprocess_options such that include paths are formed as -I"path" and not -Ipath; and to monkeypatch distutils.spawn._nt_quote_args so that it leaves all of the arguments unquoted except the first arg (path to cl.exe), which I only got working by using tilde-mangled short names.