A solution that worked for me that allowed me to use Python 2.7 (although not very desirable), is to build the Crypto module with MingGW. Download Crypto source package and run setup.py build --compiler=mingw32
.
See this question for more information: https://stackoverflow.com/questions/3706293
export PYTHONPATH=/opt/python2.6
export PATH=/opt/python2.6/bin:$PATH
And then configure
/ make
/ make install
the python-rsvg module (from gnome-python-desktop), and it should just work.
If you want just the rsvg module without the rest, you can use ./configure --disable-allbindings --enable-rsvg
.
And make sure you have the librsvg2-devel
package installed, or else the module won't build no matter how many --enables you give. :)
Update:
Clearly something is going wrong at the update #2 stage above, where ./configure
tells you that it's doing something other than what it says it's going to. Particularly, the metacity bindings are called out in the configure help as being poorly maintained.
I'm not quite sure what's wrong -- is there something helpful in the (long) output from configure? Alternately, you could try to use waf
instead of configure/make. Run:
./waf configure --enable-modules=rsvg
./waf
./waf install
(Noting that --disable-allbindings isn't necessary.)
The first line should tell you that only rsvg will be built.
Further Update:
With this approach, you're gonna need pygtk and pycairo built into your /opt/python2.6
tree. That may be why the configure is failing.
Best Answer
I've confirmed that the mod_wsgi package (libapache-mod-wsgi) supports both python 2.6 and 2.7. Checking
/usr/lib/apache2/modules
revealed the existence of bothmod_wsgi.so-2.6
andmod_wsgi.so-2.7
.To install the package without having to install python 2.6 I've used
apt-get download libapache2-mod-wsgi
to download the package without installing, and thendpkg --force-all -i libapache2-mod-wsgi
to install it by itself (i.e., without python 2.6). It automatically symlinked to themod_wsgi.so-2.7
module.PS: This is apparently a well known bug.