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.

Author maoliping455
Recipients eric.araujo, maoliping455, tarek
Date 2013-05-24.00:37:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369355842.75.0.290813933305.issue18045@psf.upfronthosting.co.za>
In-reply-to
Content
Python version : 2.7.5
OS             : CentOS 6.3

When I tried to build a rpm with "python ./setup.py bdist_rpm", I get the following error :

Traceback (most recent call last):
  File "setup.py", line 221, in <module>
    ...  and much more ;)"""
  File "/usr/local/python2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/local/python2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/python2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/python2.7/lib/python2.7/python2.7/distutils/command/bdist_rpm.py", line 383, in run
    pyversion = get_python_version()
NameError: global name 'get_python_version' is not defined


I find that we do not import function get_python_version in python2.7/distutils/command/bdist_rpm.py.
I think we need to add “from distutils.sysconfig import get_python_version” in this file.
History
Date User Action Args
2013-05-24 00:37:22maoliping455setrecipients: + maoliping455, tarek, eric.araujo
2013-05-24 00:37:22maoliping455setmessageid: <1369355842.75.0.290813933305.issue18045@psf.upfronthosting.co.za>
2013-05-24 00:37:22maoliping455linkissue18045 messages
2013-05-24 00:37:21maoliping455create