Bug #72261 Unable to build RPM for mysql-connector-python
Submitted: 7 Apr 2014 10:00 Modified: 7 May 2014 14:28
Reporter: Eduard Iskandarov Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / Python Severity:S3 (Non-critical)
Version:1.1.6 OS:Linux
Assigned to: CPU Architecture:Any
Tags: distutils, rpm

[7 Apr 2014 10:00] Eduard Iskandarov
Description:
rpmbuild command fails at %build phase with error

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.72407
+ umask 022
+ cd /home/e.iskandarov/mysql-connector-python-1.1.6/build/bdist.linux-i686/rpm/BUILD
+ cd mysql-connector-python-1.1.6
+ LANG=C
+ export LANG
+ unset DISPLAY
+ python setup.py build
Traceback (most recent call last):
  File "setup.py", line 42, in ?
    import metasetupinfo
ImportError: No module named metasetupinfo
error: Bad exit status from /var/tmp/rpm-tmp.72407 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.72407 (%build)
error: command 'rpmbuild' failed with exit status 1

How to repeat:
Download package from PyPi and unpack
Then
$ cd mysql-connector-python-1.1.6
$ python2.7 setup.py bdist_rpm
[7 Apr 2014 10:01] Eduard Iskandarov
log of bdist_rpm command

Attachment: bdist_rpm.txt (text/plain), 9.48 KiB.

[10 Apr 2014 11:03] MySQL Verification Team
Hello Eduard,

Thank you for the bug report.
Verified as described.

Thanks,
Umesh
[7 May 2014 14:27] Paul DuBois
Posted by developer:
 
Noted in 1.2.2 changelog.

Building an RPM package using python setup.py bdist_rpm did not work.