Python Forum
'python setup.py bdist' gets error on 'compiler_flags'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'python setup.py bdist' gets error on 'compiler_flags'
#1
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>
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Setup Portable Python on Windows for script starts with double clicks? pstein 0 1,811 Feb-18-2022, 01:29 PM
Last Post: pstein
  VSCode Setup and configuring to run with Python apollo 2 3,052 Jan-13-2021, 04:55 PM
Last Post: jefsummers
  Python Idlex setup robsuttonjr 3 3,059 Jan-09-2021, 09:54 PM
Last Post: Gribouillis
  python setup.py install error blackclover 2 7,914 Jan-07-2021, 04:36 AM
Last Post: blackclover
  Python to setup samuelbachorik 2 2,335 Apr-19-2020, 11:19 AM
Last Post: samuelbachorik
  cx_freeze setup.py error: No module __SNMP-FRAMEWORK-MIB nacho 8 8,944 Jul-26-2019, 09:33 PM
Last Post: njmatt415
  Arduino / Python Environment Setup - PIP stevealbright 0 2,248 Feb-24-2019, 10:48 PM
Last Post: stevealbright
  run setup.exe from python script with special parameters asheru93 0 2,309 Feb-01-2019, 03:11 PM
Last Post: asheru93
  Command "python setup.py egg_info" failed Sina 1 10,094 May-08-2018, 07:27 AM
Last Post: buran
  Setup Notepad++ for python LavaCreeperKing 6 12,745 Mar-22-2018, 07:27 PM
Last Post: LavaCreeperKing

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020