Python Forum

Full Version: 'python setup.py bdist' gets error on 'compiler_flags'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On Windows, I've successfully compiled source code of Python-3.6.12. When trying to build distribution, I got the following error complaining about compiler_flags.

Any help or pointers will be highly appreciated.

Screenshot:
D:\Python\Python36>python -V
Running Release|x64 interpreter...
Python 3.6.12

D:\Python\Python36>python setup.py bdist
Running Release|x64 interpreter...
Traceback (most recent call last):
File "setup.py", line 29, in <module>
set_compiler_flags('CFLAGS', 'PY_CFLAGS_NODIST')
File "setup.py", line 27, in set_compiler_flags
sysconfig.get_config_vars()[compiler_flags] = flags + ' ' + py_flags_nodist
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

D:\Python\Python36>