[python-uk] Packaging advice for ujson / rpm / RHEL5
Antonio Cavallo
a.cavallo at cavallinux.eu
Mon Jan 28 10:32:39 CET 2013
Hi,
have a look to :
http://cclimited.webfactional.com/make_your_module/spec.creator.pyquality.html
If you strip off the %define opt_python and %define _prefix you'll have
a multi platform rpm spec file (and the blue bit have to be changed).
Let me know if that helps you.
René Dudfield wrote:
> Try exporting compilation environment variables. Like CC
> LD_LIBRARY_FLAGS etc. Google them :)
>
> On Jan 28, 2013 10:04 AM, "Nicholas H.Tollervey" <ntoll at ntoll.org
> <mailto:ntoll at ntoll.org>> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I need to build an RPM of ujson for RHEL5 targeting Python2.6. This
> will be deployed on "front end" boxes that do not have a compiler
> installed (hence I can't just pip install the damn thing).
>
> All the RHEL5 machines have Python 2.4, 2.5 and 2.6 installed with the
> default being 2.4 (what you get from /usr/bin/python).
>
> If I run setup in the root of the ujson project like this:
>
> $ python2.6 setup.py bdist_rpm
>
> I notice from the output from GCC that the script has the -fPIC flag
> reference /usr/include/python2.4
>
> :-(
>
> Obviously, compilation is being done against the wrong version of
> Python.
>
> Anyone know how to pass in or force the version to Python 2.6?
>
> Many thanks,
>
> Nicholas.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with undefined - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJRBj6DAAoJEP0qBPaYQbb6zhEIAKBRAxOmrq3XcBxG9PAlhMFf
> 9yYQ5cXumEFHMAyEM+DB9my+/VKojyWCYnsdkw5hSPheblyzdNExToqNOsNkgs+V
> Yg5OJ7/8G0mHi0Q/PjTLPdGtyuL4nRWTu2oOorq1MI9gZYAhAve9J1v1uYN6DJ1u
> 97DoAda4VaIQoRAjT4M1m9w3lrj8w90Ke6vFLTlctjo3ln64yD86MXinT1xa8Y3F
> 2Kzskm6/0Bpis16ek4+xS5tOxVWw6AtxmV2r3Oxx8PjQpleh3ewZjDE1B9217613
> QpSI3kkhhl7Di+4O+W9HTNBOosnFodFk6UJjroRJb57opYejj+gymBfQzxktQKM=
> =x/Jb
> -----END PGP SIGNATURE-----
> _______________________________________________
> python-uk mailing list
> python-uk at python.org <mailto:python-uk at python.org>
> http://mail.python.org/mailman/listinfo/python-uk
>
> _______________________________________________
> python-uk mailing list
> python-uk at python.org
> http://mail.python.org/mailman/listinfo/python-uk
More information about the python-uk
mailing list