[Zope] problem creating MySQL-python rpm: _mysql not found.
Ron Arts
raarts@office.netland.nl
Tue, 05 Mar 2002 23:01:20 +0100
This is a cryptographically signed message in MIME format.
--------------ms000100050303090605010109
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
this must be a FAQ but, and maybe this is not the right list but..
I am trying to create an RPM out of MySQL-python.
The README states: you *must* compile using 'Zope's python'.
Ok, so what does that mean? I looked around google and it seems to
mean: 'the python that z2.py is started by.'
Ok, that's /usr/bin/python2.1, so I did:
$ /usr/bin/python2.1 setup.py bdist_rpm
and indeed, it creates an .rpm. But when I look inside
that rpm, it contains /usr/lib/python1.5/site-packages/MySQLdb/*,
so it uses python 1.5!!
Indeed if I install the rpm (and ZMySQLDA after it) then ZMySQLDA
is broken and says 'ImportError: No module named _mysql'
Does anyone have experience building rpm's with python?
Thanks,
Ron Arts
--------------ms000100050303090605010109
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJZzCC
AxkwggKCoAMCAQICAwbOTzANBgkqhkiG9w0BAQQFADCBkjELMAkGA1UEBhMCWkExFTATBgNV
BAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUx
HTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVl
bWFpbCBSU0EgMjAwMC44LjMwMB4XDTAyMDIyMDIxMDE1MFoXDTAzMDIyMDIxMDE1MFowXDEN
MAsGA1UEBBMEQXJ0czERMA8GA1UEKhMIUm9uIFIuQS4xFjAUBgNVBAMTDVJvbiBSLkEuIEFy
dHMxIDAeBgkqhkiG9w0BCQEWEXJhYXJ0c0BuZX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