slmingol posted this in
tips & tricks on
March 4th, 2009, @ 2:08 am
I needed to do this to get Trac’s gitPlugin working. The gitPlugin has a requirement for Python 2.5. After googling I stumbled into the blog.bashton.com site which provided a SRPM from which I could build the i386 version of Python 2.5. See my previous post about how to get this SRPM built and installed.
Once I got Python 2.5’s RPMS installed I wanted to get setuptools installed. So I kinda sorta loosely followed along this blog post over on perplexedlabs.com.
Point python to python25
1
| alias python=/usr/bin/python25 |
Installing setuptools
1
2
3
4
5
6
7
8
9
10
11
12
13
| # download setuptools
% wget http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c9-py2.5.egg
# install
% sh setuptools-0.6c9-py2.5.egg
Processing setuptools-0.6c9-py2.5.egg
Copying setuptools-0.6c9-py2.5.egg to /usr/lib/python2.5/site-packages
Adding setuptools 0.6c9 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.5 script to /usr/bin
Installed /usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg
Processing dependencies for setuptools==0.6c9
Finished processing dependencies for setuptools==0.6c9 |
…. Continue reading → Installing Python 2.5 on CentOS 5 »»
slmingol posted this in
tips & tricks on
February 27th, 2009, @ 10:40 pm
Recently I was trying to install some Trac plugins from the trac-hacks.org website. I have several instances of Trac and so I wanted to install the plugins as Python .egg files at a global level so that all the instances could make use of them.
First attempt …
It seemed easy enough, just use Python’s easy_install command and point it at the subversion tree for a particular Trac plugin.
1
2
3
| % easy_install http://trac-hacks.org/svn/tagsplugin/tags/0.6/
Downloading http://trac-hacks.org/svn/tagsplugin/tags/0.6/
error: Unexpected HTML page found at http://trac-hacks.org/svn/tagsplugin/tags/0.6/ |
HMM… Googling a bit I came across a couple of posts which basically led to 2 possible solutions. One mentioned that you might have some success by appending a ?format=raw after the Trac Browser’s URL. The second mentioned trying to upgrade setuptools (aka. the package that provides easy_install).
I went with the second choice since I was dealing with a subversion repo directly and not the Trac Code Browser.
Second attempt …
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| % easy_install -U setuptools
Searching for setuptools
Reading http://cheeseshop.python.org/pypi/setuptools/
Reading http://pypi.python.org/pypi/setuptools
Reading http://cheeseshop.python.org/pypi/setuptools/0.6c9
Best match: setuptools 0.6c9
Downloading http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c9-py2.4.egg#md5=260a2be2e5388d66bdaee06abec6342a
Processing setuptools-0.6c9-py2.4.egg
creating /usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg
Extracting setuptools-0.6c9-py2.4.egg to /usr/lib/python2.4/site-packages
Removing setuptools 0.6c5 from easy-install.pth file
Adding setuptools 0.6c9 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.4 script to /usr/bin
Installed /usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg
Processing dependencies for setuptools |
…. Continue reading → Installing Trac Plugins Using Python’s easy_install (aka. as .egg files) »»