[Distutils] Problem installing setuptools under virtual python environment

2009-09-17 Thread dan
I am on a Cent OS shared system (i.e. I don't have root) with python 2.4 and am having trouble setting up setuptools in a virtual environment. I start by setting up the virtual environment: $/usr/bin/python2.4 virtual-python.py --prefix=~/apps/python Creating

Re: [Distutils] Get install prefix for module at runtime

2009-09-17 Thread Tarek Ziadé
On Wed, Sep 16, 2009 at 5:40 PM, Wolodja Wentland wentl...@cl.uni-heidelberg.de wrote: On Tue, Sep 15, 2009 at 17:38 +0200, Wolodja Wentland wrote: My question is: How to reliably access data files from a module in foo? Approach 2 - writing a build.py file at installation time

[Distutils] non-ascii characters in long description

2009-09-17 Thread Reinout van Rees
I have non-ascii characters in my long description (as I just fixed a bug in my package that had to do with non-ascii characters). I did all the right things like opening my changelog and readme with codecs.open(..., encoding='utf-8') and so. But I ran into the following setuptools problem:

Re: [Distutils] non-ascii characters in long description

2009-09-17 Thread Tarek Ziadé
On Thu, Sep 17, 2009 at 2:46 PM, Reinout van Rees rein...@vanrees.org wrote: I have non-ascii characters in my long description (as I just fixed a bug in my package that had to do with non-ascii characters).  I did all the right things like opening my changelog and readme with codecs.open(...,

Re: [Distutils] non-ascii characters in long description

2009-09-17 Thread Reinout van Rees
On 2009-09-17, Tarek Ziadé ziade.ta...@gmail.com wrote: On Thu, Sep 17, 2009 at 2:46 PM, Reinout van Rees rein...@vanrees.org wrote: I have non-ascii characters in my long description (as I just fixed a bug in my package that had to do with non-ascii characters).  I did all the right things

Re: [Distutils] non-ascii characters in long description

2009-09-17 Thread Tarek Ziadé
On Thu, Sep 17, 2009 at 3:31 PM, Reinout van Rees rein...@vanrees.org wrote: On 2009-09-17, Tarek Ziadé ziade.ta...@gmail.com wrote: On Thu, Sep 17, 2009 at 2:46 PM, Reinout van Rees rein...@vanrees.org wrote: I have non-ascii characters in my long description (as I just fixed a bug in my

Re: [Distutils] setup.cfg new format proposal

2009-09-17 Thread P.J. Eby
At 12:41 PM 9/17/2009 +0200, Tarek Ziadé wrote: Also, if I understand clearly the idea, I find it rather cryptic to add conditions to each dependency like what Sridhar has shown. That's actually not how it would work; you simply put section headings inside the extras_require field, rather

Re: [Distutils] non-ascii characters in long description

2009-09-17 Thread Reinout van Rees
On 2009-09-17, Tarek Ziadé ziade.ta...@gmail.com wrote: Yes that's the one I've fixed. You have to backport a fix in your setup.py if python 2.6 You can register.patch post_to_server to pre-process all values in the data argument, so they are all in unicode, then call the real one. Thanks

Re: [Distutils] Get install prefix for module at runtime

2009-09-17 Thread Tarek Ziadé
On Thu, Sep 17, 2009 at 12:55 PM, Tarek Ziadé ziade.ta...@gmail.com wrote: On Wed, Sep 16, 2009 at 5:40 PM, Wolodja Wentland wentl...@cl.uni-heidelberg.de wrote: On Tue, Sep 15, 2009 at 17:38 +0200, Wolodja Wentland wrote: My question is: How to reliably access data files from a module in

Re: [Distutils] non-ascii characters in long description

2009-09-17 Thread Marius Gedminas
On Thu, Sep 17, 2009 at 03:46:27PM +0200, Tarek Ziadé wrote: On Thu, Sep 17, 2009 at 3:31 PM, Reinout van Rees rein...@vanrees.org wrote: On 2009-09-17, Tarek Ziadé ziade.ta...@gmail.com wrote: On Thu, Sep 17, 2009 at 2:46 PM, Reinout van Rees rein...@vanrees.org wrote: I have non-ascii

Re: [Distutils] non-ascii characters in long description

2009-09-17 Thread Marius Gedminas
On Thu, Sep 17, 2009 at 01:58:34PM +, Reinout van Rees wrote: On 2009-09-17, Tarek Ziadé ziade.ta...@gmail.com wrote: Yes that's the one I've fixed. You have to backport a fix in your setup.py if python 2.6 You can register.patch post_to_server to pre-process all values in the

Re: [Distutils] Get install prefix for module at runtime

2009-09-17 Thread Wolodja Wentland
On Thu, Sep 17, 2009 at 18:51 +0200, Tarek Ziadé wrote: you might be able to alter it on-the-fly by overriding the build_py command instead of the install command That worked perfectly! Thanks again for the help and pointers you gave me. I really appreciate that. The solution i came up with

Re: [Distutils] distutils bdist_rpm and %postun section of spec file

2009-09-17 Thread A. Cavallo
Hi, as rule of thumb (followed now by all major distros) you should not put any script in %postun, %postinst etc sections. Regards, Antonio Hello, I am looking for some advise in creating rpm package using bdist_rpm. I have managed to create post_install part using information

[Distutils] [buildout] recipes useful to setup a whole machine

2009-09-17 Thread Chris Withers
Hi All, I have a hair-brained notion of using a buildout to set up an entire machine. Has anyone done this before? (Jim, didn't you say ZC do this a lot?) From where I'm sitting, I'm looking for a few recipes: - what's the best download cmmi recipe out there? - what's the best recipe for

Re: [Distutils] [buildout] recipes useful to setup a whole machine

2009-09-17 Thread Jim Fulton
On Thu, Sep 17, 2009 at 5:11 PM, Chris Withers ch...@simplistix.co.uk wrote: I have a hair-brained notion of using a buildout to set up an entire machine. Has anyone done this before? (Jim, didn't you say ZC do this a lot?) No, we use buildouts to build rpms. Jim -- Jim Fulton

Re: [Distutils] [buildout] recipes useful to setup a whole machine

2009-09-17 Thread Chris Withers
Jim Fulton wrote: On Thu, Sep 17, 2009 at 5:11 PM, Chris Withers ch...@simplistix.co.uk wrote: I have a hair-brained notion of using a buildout to set up an entire machine. Has anyone done this before? (Jim, didn't you say ZC do this a lot?) No, we use buildouts to build rpms. Ah, okay, do

Re: [Distutils] setup.cfg new format proposal

2009-09-17 Thread Sridhar Ratnakumar
On Thu, 17 Sep 2009 07:05:46 -0700, Tarek Ziadé ziade.ta...@gmail.com wrote: On Thu, Sep 17, 2009 at 3:53 PM, P.J. Eby p...@telecommunity.com wrote: At 12:41 PM 9/17/2009 +0200, Tarek Ziadé wrote: Also, if I understand clearly the idea, I find it rather cryptic to add conditions to each

Re: [Distutils] non-ascii characters in long description

2009-09-17 Thread Maurits van Rees
Marius Gedminas, on 2009-09-17: On Thu, Sep 17, 2009 at 01:58:34PM +, Reinout van Rees wrote: On 2009-09-17, Tarek Ziadé ziade.ta...@gmail.com wrote: Yes that's the one I've fixed. You have to backport a fix in your setup.py if python 2.6 You can register.patch post_to_server to

Re: [Distutils] [buildout] recipes useful to setup a whole machine

2009-09-17 Thread Jim Fulton
On Thu, Sep 17, 2009 at 6:06 PM, Chris Withers ch...@simplistix.co.uk wrote: Jim Fulton wrote: On Thu, Sep 17, 2009 at 5:11 PM, Chris Withers ch...@simplistix.co.uk wrote: I have a hair-brained notion of using a buildout to set up an entire machine. Has anyone done this before? (Jim, didn't

Re: [Distutils] Problem installing setuptools under virtual python environment

2009-09-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 dan wrote: I am on a Cent OS shared system (i.e. I don't have root) with python 2.4 and am having trouble setting up setuptools in a virtual environment. I start by setting up the virtual environment: $/usr/bin/python2.4 virtual-python.py

[Distutils] stdeb-0.3 error

2009-09-17 Thread Gerry Reno
sudo easy_install stdeb # brought in stdeb 0.3 $ cd myappdir # where my setup.py is located $# following http://github.com/astraw/stdeb/ quickstart 1 $ python -c import stdeb; execfile('setup.py') sdist_dsc \ cd `find deb_dist -mindepth 1 -maxdepth 1 -type d` \ dpkg-buildpackage

Re: [Distutils] stdeb-0.3 error

2009-09-17 Thread Andrew Straw
Gerry Reno wrote: sudo easy_install stdeb # brought in stdeb 0.3 $ cd myappdir # where my setup.py is located $# following http://github.com/astraw/stdeb/ quickstart 1 $ python -c import stdeb; execfile('setup.py') sdist_dsc \ cd `find deb_dist -mindepth 1 -maxdepth 1 -type d` \