[New-bugs-announce] [issue18051] get_python_version undefined in bdist_rpm.py

Craig McDaniel report at bugs.python.org
Fri May 24 21:56:52 CEST 2013

New submission from Craig McDaniel:

Running "setup.py bdist_rpm" throws an exception on some libraries (e.g. - simplejson) since 2.7.4 due to introduction of get_python_version():

Traceback (most recent call last):
  File "setup.py", line 103, in <module>
  File "setup.py", line 99, in run_setup
    cmdclass={'build_ext': ve_build_ext},
  File "/home/cmcdaniel/src/cpython/Lib/distutils/core.py", line 152, in setup
  File "/home/cmcdaniel/src/cpython/Lib/distutils/dist.py", line 953, in run_commands
  File "/home/cmcdaniel/src/cpython/Lib/distutils/dist.py", line 972, in run_command
  File "build/bdist.linux-i686/egg/setuptools/command/bdist_rpm.py", line 28, in run
  File "/home/cmcdaniel/src/cpython/Lib/distutils/command/bdist_rpm.py", line 383, in run
    pyversion = get_python_version()
NameError: global name 'get_python_version' is not defined

assignee: eric.araujo
components: Distutils
files: mywork.patch
keywords: patch
messages: 189926
nosy: Craig.McDaniel, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: get_python_version undefined in bdist_rpm.py
versions: Python 2.7
Added file: http://bugs.python.org/file30361/mywork.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list