<p>Try exporting compilation environment variables. Like CC LD_LIBRARY_FLAGS etc. Google them :)</p>
<div class="gmail_quote">On Jan 28, 2013 10:04 AM, "Nicholas H.Tollervey" <<a href="mailto:ntoll@ntoll.org">ntoll@ntoll.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi,<br>
<br>
I need to build an RPM of ujson for RHEL5 targeting Python2.6. This<br>
will be deployed on "front end" boxes that do not have a compiler<br>
installed (hence I can't just pip install the damn thing).<br>
<br>
All the RHEL5 machines have Python 2.4, 2.5 and 2.6 installed with the<br>
default being 2.4 (what you get from /usr/bin/python).<br>
<br>
If I run setup in the root of the ujson project like this:<br>
<br>
$ python2.6 setup.py bdist_rpm<br>
<br>
I notice from the output from GCC that the script has the -fPIC flag<br>
reference /usr/include/python2.4<br>
<br>
:-(<br>
<br>
Obviously, compilation is being done against the wrong version of Python.<br>
<br>
Anyone know how to pass in or force the version to Python 2.6?<br>
<br>
Many thanks,<br>
<br>
Nicholas.<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
Comment: Using GnuPG with undefined - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iQEcBAEBAgAGBQJRBj6DAAoJEP0qBPaYQbb6zhEIAKBRAxOmrq3XcBxG9PAlhMFf<br>
9yYQ5cXumEFHMAyEM+DB9my+/VKojyWCYnsdkw5hSPheblyzdNExToqNOsNkgs+V<br>
Yg5OJ7/8G0mHi0Q/PjTLPdGtyuL4nRWTu2oOorq1MI9gZYAhAve9J1v1uYN6DJ1u<br>
97DoAda4VaIQoRAjT4M1m9w3lrj8w90Ke6vFLTlctjo3ln64yD86MXinT1xa8Y3F<br>
2Kzskm6/0Bpis16ek4+xS5tOxVWw6AtxmV2r3Oxx8PjQpleh3ewZjDE1B9217613<br>
QpSI3kkhhl7Di+4O+W9HTNBOosnFodFk6UJjroRJb57opYejj+gymBfQzxktQKM=<br>
=x/Jb<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
python-uk mailing list<br>
<a href="mailto:python-uk@python.org">python-uk@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-uk" target="_blank">http://mail.python.org/mailman/listinfo/python-uk</a><br>
</blockquote></div>