Python Forum
'python setup.py bdist' gets error on 'compiler_flags' - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: 'python setup.py bdist' gets error on 'compiler_flags' (/thread-29451.html)



'python setup.py bdist' gets error on 'compiler_flags' - 1780yz - Sep-02-2020

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>