[Python-projects] setuptools patches for common, astng and pylint

Victor Stinner victor.stinner at haypocalc.com
Tue Aug 22 02:55:24 CEST 2006


Hi,

I wrote patched for logilab.common, logilab.astng, logilab.pylint for make 
them use setuptools in setup.py.

This patch allows to build eggs: ./setup.py bdist_egg

It also takes care about dependancies:
- astng depends on common>=0.15.0
- pylint depends on common>=0.15.0 and astng>=0.16.0 (maybe astng is enough?)

Eggs are ZIP archive containing a Python module. It's possible to install a 
program (pylint) in your home directory _with_ the eggs.

Prepare all eggs:
$ mkdir ~/logilab
$ for dir in ~/{common-0.15.0,astng-0.16.0,pylint-0.11.0}; do
> (cd dir; python2.4 setup.py bdist egg; cp dist/*.egg ~/logilab)
> done 
(...)
$ ls
astng-0.16.0-py2.4.egg  common-0.15.0-py2.4.egg  pylint-0.11.0-py2.4.egg

Install a program with eggs:
$ DEST=~/pylint
$ mkdir -p $DEST
$ cd ~/logilab
$ easy_install --install-dir=$DEST common*.egg astng*.egg pylint*.egg
$ ls $DEST
astng-0.16.0-py2.4.egg   pylint                   pylint-gui
common-0.15.0-py2.4.egg  pylint-0.11.0-py2.4.egg  symilar

When eggs will be stored on Cheese Shop:
$ easy_install pylint

Or in a custom directory:
$ easy_install --install-dir=~/pylint pylint

Finally, to update packages:
$ easy_install -U common astng pylint

--

So if you accepts my patches, don't forget to upload eggs on Cheese Shop ;-)

Haypo
-- 
Victor Stinner aka haypo
http://www.haypocalc.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logilab_astng_setuptools.patch
Type: text/x-diff
Size: 918 bytes
Desc: not available
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20060822/ae819dc1/logilab_astng_setuptools.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logilab_common_setuptools.patch
Type: text/x-diff
Size: 581 bytes
Desc: not available
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20060822/ae819dc1/logilab_common_setuptools.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logilab_pylint_setuptools.patch
Type: text/x-diff
Size: 961 bytes
Desc: not available
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20060822/ae819dc1/logilab_pylint_setuptools.bin


More information about the Python-Projects mailing list