[issue4508] distutils compiler not handling spaces in path to output/src files
Greg Toombs
report at bugs.python.org
Sun Aug 12 22:28:40 EDT 2018
Greg Toombs <gtoombs at lakeheadu.ca> added the comment:
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.
----------
nosy: +Greg Toombs
versions: +Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue4508>
_______________________________________
More information about the Python-bugs-list
mailing list