This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: get_python_version undefined in
Type: behavior Stage: resolved
Components: Distutils Versions: Python 2.7
Status: closed Resolution: duplicate
Dependencies: Superseder: get_python_version is not import in
View: 18045
Assigned To: eric.araujo Nosy List: Craig.McDaniel, eric.araujo, tarek
Priority: normal Keywords: patch

Created on 2013-05-24 19:56 by Craig.McDaniel, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
mywork.patch Craig.McDaniel, 2013-05-24 19:56 review
Messages (2)
msg189926 - (view) Author: Craig McDaniel (Craig.McDaniel) * Date: 2013-05-24 19:56
Running " 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 "", line 103, in <module>
  File "", line 99, in run_setup
    cmdclass={'build_ext': ve_build_ext},
  File "/home/cmcdaniel/src/cpython/Lib/distutils/", line 152, in setup
  File "/home/cmcdaniel/src/cpython/Lib/distutils/", line 953, in run_commands
  File "/home/cmcdaniel/src/cpython/Lib/distutils/", line 972, in run_command
  File "build/bdist.linux-i686/egg/setuptools/command/", line 28, in run
  File "/home/cmcdaniel/src/cpython/Lib/distutils/command/", line 383, in run
    pyversion = get_python_version()
NameError: global name 'get_python_version' is not defined
msg189927 - (view) Author: Craig McDaniel (Craig.McDaniel) * Date: 2013-05-24 20:04
Closing; duplicate of 18045
Date User Action Args
2022-04-11 14:57:46adminsetgithub: 62251
2013-05-30 08:52:32berker.peksagsettype: behavior
superseder: get_python_version is not import in
stage: resolved
2013-05-24 20:04:37Craig.McDanielsetstatus: open -> closed
resolution: duplicate
messages: + msg189927
2013-05-24 19:56:52Craig.McDanielcreate