Re: [Distutils] Question about easy-install.pth

2008-10-01 Thread Deron Meranda
On Wed, Oct 1, 2008 at 2:12 AM, Brian Cameron <[EMAIL PROTECTED]> wrote: > I am having troubles working with setuptools on Solaris. The Solaris > operating system normally installs modules as packages which contain > binaries. This is unlike other Linux operating systems where, for > exmaple, an

Re: [Distutils] "just use debian"

2008-10-01 Thread Josselin Mouette
Le mardi 30 septembre 2008 à 16:57 -0500, Dave Peterson a écrit : > But we already have a separation between project name and module names > that are contained within that project. We don't currently declare > dependencies on the module names but on the project name. i.e. a > dependency on Hard

Re: [Distutils] "just use debian"

2008-10-01 Thread David Cournapeau
Josselin Mouette wrote: > > As I understand PEP 345, it proposes to introduce dependencies based on > module names, not on project names. This is one of the key points where > it is superior to setuptools; especially, if developers correctly change > the module name when changing the API, the depen

Re: [Distutils] "just use debian"

2008-10-01 Thread Josselin Mouette
Le mercredi 01 octobre 2008 à 17:24 +0900, David Cournapeau a écrit : > I mean, when I build my C program against the glibc, I never have to > change my compiler commands depending on which version of glibc I want. Indeed, and the reason is that *functions never disappear from the glibc*. > Inter

Re: [Distutils] "just use debian"

2008-10-01 Thread David Cournapeau
Josselin Mouette wrote: > > Indeed, and the reason is that *functions never disappear from the > glibc*. Yes and no. If you remove a function, you're indeed screwed, because you can't handle versioning in the header. But you can handle versioning in libraries at the link step, and file name of the

[Distutils] [zc.buildout] running in safe mode

2008-10-01 Thread Tarek Ziadé
Hello I know it is a bad practice for a recipe to return some paths that contains important data in the install() method, because zc.buildout might remove them. Nevertheless, it happens from time to time that a developer lose some content because of a misconfiguration, or a zealous recipe. That i

Re: [Distutils] Just downloading an egg

2008-10-01 Thread Pascoe, S (Stephen)
I feel foolish now. The bit I was always missing was "-m" which stops easy_install complaining about "." not being on PYTHONPATH. I really think this should be more obvious though. Something this basic could do with it's own option. It would help demystify what easy_install does. The basic u

[Distutils] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Tarek Ziadé
Hello I have followed most of the threads from the past days, and we talked a lot on IRC with people from Fedora, Debian, Enthought, TG2 on possible enhancements While the other threads are continuing in deeper details, I would like to start a fresh thread were people don't have to re-read everyth

[Distutils] Installing single module from src directory

2008-10-01 Thread Dinu Gherman
Hi, I've been using distutils for a while now, but today I'm running into what seems to be the "minimal strange issue". I want to in- stall a single Python module without anything else, no package around it, which resides in a source subdirectory of the main project directory. My layout looks lik

[Distutils] package information

2008-10-01 Thread Nicolas Chauvat
As a follow up to the thread named [Fwd: Re: Announcing distribute project] where Tarek ended up proposing a package_info.py file or a PackageInfo class: http://www.logilab.org/cgi-bin/hgwebdir.cgi/logilab/common/file/02993a85ee3c/__pkginfo__.py -- Nicolas Chauvat logilab.fr - services en infor

[Distutils] [issue49] [PATCH] Multiple dependency resolution

2008-10-01 Thread chris
New submission from chris <[EMAIL PROTECTED]>: Given a set of packages and their dependencies, process all dependencies, find the intersection, and install dependencies based on the results. The current behavior is to find the best match for each individual package. This can result in breakages w

Re: [Distutils] package information

2008-10-01 Thread Tarek Ziadé
On Tue, Sep 30, 2008 at 7:51 PM, Nicolas Chauvat <[EMAIL PROTECTED]> wrote: > As a follow up to the thread named [Fwd: Re: Announcing distribute > project] where Tarek ended up proposing a package_info.py file or a > PackageInfo class: > > http://www.logilab.org/cgi-bin/hgwebdir.cgi/logilab/common/

Re: [Distutils] [Catalog-sig] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Fred Drake
On Wed, Oct 1, 2008 at 8:10 AM, Tarek Ziadé <[EMAIL PROTECTED]> wrote: > 8/ the requires-python field is rarely used by people, so unless you > try the package, you don't know when it is a source >distribution, if it is going to run on various python versions. What requires-python field? I do

Re: [Distutils] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Jeroen Ruigrok van der Werven
-On [20081001 14:10], Tarek Ziadé ([EMAIL PROTECTED]) wrote: >I have followed most of the threads from the past days, and we talked >a lot on IRC with people from Fedora, Debian, Enthought, TG2 on >possible enhancements Just a note: do not forget the BSD Unix systems when it comes to

Re: [Distutils] [Catalog-sig] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Tarek Ziadé
On Wed, Oct 1, 2008 at 3:08 PM, Fred Drake <[EMAIL PROTECTED]> wrote: > On Wed, Oct 1, 2008 at 8:10 AM, Tarek Ziadé <[EMAIL PROTECTED]> wrote: >> 8/ the requires-python field is rarely used by people, so unless you >> try the package, you don't know when it is a source >>distribution, if it is

Re: [Distutils] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Tarek Ziadé
On Wed, Oct 1, 2008 at 3:16 PM, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote: > -On [20081001 14:10], Tarek Ziadé ([EMAIL PROTECTED]) wrote: >>I have followed most of the threads from the past days, and we talked >>a lot on IRC with people from Fedora, Debi

Re: [Distutils] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Jeroen Ruigrok van der Werven
-On [20081001 15:24], Tarek Ziadé ([EMAIL PROTECTED]) wrote: >Yes indeed, a BSD packager could be helpfull in the discussion. Are >you able to help us in this ? I used to be a FreeBSD and DragonFly BSD committer and I still use Python mostly on BSD systems. I am sure Trent Nelson could als

Re: [Distutils] Msgfmt in distutils?

2008-10-01 Thread Toshio Kuratomi
Andrew Price wrote: > Hi, > > Distutils has made my life easier as an python application author and packager > for some time but when it comes to generating and distributing message > catalogues for translations, things get unexpectedly tricky. > > It would be nice to be able to do something like

Re: [Distutils] Msgfmt in distutils?

2008-10-01 Thread Jeroen Ruigrok van der Werven
-On [20081001 16:28], Toshio Kuratomi ([EMAIL PROTECTED]) wrote: >> and have distutils do the right thing with the .po files at build time >> (generate .mo files from them) and at install time (install them into >> PREFIX/share/locales/LC_MESSAGES/, or wherever the distribution i

Re: [Distutils] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Phillip J. Eby
At 02:10 PM 10/1/2008 +0200, Tarek Ziadé wrote: Proposals this is also a synthezis of what I hurd, and some elements I have added to respect the needs that were expressed. 0/ a lot of work can be done to clean distutils, no matter what is decided (another PEP is built for that) cleanni

Re: [Distutils] Installing single module from src directory

2008-10-01 Thread Phillip J. Eby
At 02:10 PM 10/1/2008 +0200, Dinu Gherman wrote: Hi, I've been using distutils for a while now, but today I'm running into what seems to be the "minimal strange issue". I want to in- stall a single Python module without anything else, no package around it, which resides in a source subdirectory

Re: [Distutils] Question about easy-install.pth

2008-10-01 Thread Phillip J. Eby
At 01:12 AM 10/1/2008 -0500, Brian Cameron wrote: I am having troubles working with setuptools on Solaris. The Solaris operating system normally installs modules as packages which contain binaries. This is unlike other Linux operating systems where, for exmaple, an RPM would download the sour

Re: [Distutils] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Tarek Ziadé
On Wed, Oct 1, 2008 at 7:29 PM, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > I'm -1 on all of the above. I think we need a standard for tools interop > (ala WSGI), not implementation tweaks for the existing tools. I also think > that a concrete metadata format proposal is premature at this time; w

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Toshio Kuratomi
You guys are fairly into you debate so hopefully I don't interject something that's already been gone over :-) Chris Withers wrote: > Matthias Klose wrote: Install debian and get back to productive tasks. >>> This is an almost troll-like answer. >>> See page 35 of the presentation. >> >> I di

Re: [Distutils] Question about easy-install.pth

2008-10-01 Thread Toshio Kuratomi
Brian Cameron wrote: > You're actually describing pretty much exactly how rpm works :-) As such, the Fedora Project has had to deal with many of the same issues in packaging python packages as you're running into. This pairs of pages may help you: http://fedoraproject.org/wiki/Packaging/Python

Re: [Distutils] Msgfmt in distutils?

2008-10-01 Thread Toshio Kuratomi
Jeroen Ruigrok van der Werven wrote: > -On [20081001 16:28], Toshio Kuratomi ([EMAIL PROTECTED]) wrote: >>> and have distutils do the right thing with the .po files at build time >>> (generate .mo files from them) and at install time (install them into >>> PREFIX/

Re: [Distutils] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Phillip J. Eby
At 07:55 PM 10/1/2008 +0200, Tarek Ziadé wrote: On Wed, Oct 1, 2008 at 7:29 PM, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > I'm -1 on all of the above. I think we need a standard for tools interop > (ala WSGI), not implementation tweaks for the existing tools. I also think > that a concrete met

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Phillip J. Eby
At 11:00 AM 10/1/2008 -0700, Toshio Kuratomi wrote: I have no love for how pkg_resources implements this (including the API) but the idea of retrieving data files, locales, config files, etc from an API is good. For packages to be coded that conform to the File Hierachy Standard on Linux, the AP

Re: [Distutils] Question about easy-install.pth

2008-10-01 Thread Brian Cameron
Phillip & Others: Thanks so much for taking the time to answer my questions, I am a newbie to setuptools so I apologize if I was just being thick. Phillip, your suggested solution of using --root solved my problem. I was previously using --prefix instead, but using --root creates the packages

Re: [Distutils] Msgfmt in distutils?

2008-10-01 Thread Jeroen Ruigrok van der Werven
-On [20081001 20:26], Toshio Kuratomi ([EMAIL PROTECTED]) wrote: >That's good to know. One of our Turbogears applications uses Babel and >it definitely doesn't install to the right place. I'd love to fix it to >take advantage of Babel' properly. Would y

Re: [Distutils] Msgfmt in distutils?

2008-10-01 Thread Andrew Price
Hi, On 01/10/08 15:35, Jeroen Ruigrok van der Werven wrote: > -On [20081001 16:28], Toshio Kuratomi ([EMAIL PROTECTED]) wrote: >> This has been a big deal for some applications I work on. Our first cut >> was to add new Build and InstallData command classes. > > Actu

Re: [Distutils] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Gael Varoquaux
On Wed, Oct 01, 2008 at 02:28:07PM -0400, Phillip J. Eby wrote: > In order for the *real* goal to be achieved (i.e., a flourishing > build/install system for Python), widespread participation and buy-in is > required. If the OS people or the big package people (e.g. Zope Corp., > Enthought) or

Re: [Distutils] Question about easy-install.pth

2008-10-01 Thread Phillip J. Eby
At 02:15 PM 10/1/2008 -0500, chris wrote: Is it just me, or does --root work the same way --single-version-externally-managed does, just with the addition of the directory? --root automatically triggers --single-version-externally-managed, in addition to distutils' normal handling of --root.

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Josselin Mouette
Le mercredi 01 octobre 2008 à 11:00 -0700, Toshio Kuratomi a écrit : > 1) The heuristic encourages bad practices. Versions need to be parsed > by computer programs (package managers, scripts that maintain > repositories, etc). Not all of those are written in python. Having > things other than le

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Josselin Mouette
Le mercredi 01 octobre 2008 à 14:39 -0400, Phillip J. Eby a écrit : > > We need to be able to mark locale, config, and data files in > >the metadata. > > Sure... and having a standard for specifying that kind of > application/system-level install stuff is great; it's just entirely > outside t

Re: [Distutils] Msgfmt in distutils?

2008-10-01 Thread Philip Jenvey
On Oct 1, 2008, at 11:25 AM, Toshio Kuratomi wrote: Jeroen Ruigrok van der Werven wrote: -On [20081001 16:28], Toshio Kuratomi ([EMAIL PROTECTED]) wrote: and have distutils do the right thing with the .po files at build time (generate .mo files from them) and at install time (install them

Re: [Distutils] Msgfmt in distutils?

2008-10-01 Thread Toshio Kuratomi
Jeroen Ruigrok van der Werven wrote: > -On [20081001 20:26], Toshio Kuratomi ([EMAIL PROTECTED]) wrote: >> That's good to know. One of our Turbogears applications uses Babel and >> it definitely doesn't install to the right place. I'd love to fix it to >&g

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Phillip J. Eby
At 09:40 PM 10/1/2008 +0200, Josselin Mouette wrote: Le mercredi 01 octobre 2008 à 14:39 -0400, Phillip J. Eby a écrit : > > We need to be able to mark locale, config, and data files in > >the metadata. > > Sure... and having a standard for specifying that kind of > application/system-level

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Toshio Kuratomi
Phillip J. Eby wrote: > At 11:00 AM 10/1/2008 -0700, Toshio Kuratomi wrote: >> I have no love for how pkg_resources implements this (including the API) >> but the idea of retrieving data files, locales, config files, etc from >> an API is good. For packages to be coded that conform to the File >>

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Toshio Kuratomi
Phillip J. Eby wrote: > At 09:40 PM 10/1/2008 +0200, Josselin Mouette wrote: >> Le mercredi 01 octobre 2008 à 14:39 -0400, Phillip J. Eby a écrit : >> > > We need to be able to mark locale, config, and data files in >> > >the metadata. >> > >> > Sure... and having a standard for specifying tha

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Dave Peterson
Toshio Kuratomi wrote: Another idea would be to have API information stored in metadata but not in the package name. That way marketing can have a big party for MyLib-2.0 but the API metadata has API_Revision: 32. +1. (I think this idea has been mentioned before too.) We should definit

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Dave Peterson
Josselin Mouette wrote: Le mercredi 01 octobre 2008 à 14:39 -0400, Phillip J. Eby a écrit : To be clear, I mean here that a "file" (as opposed to a resource) is something that the user is expected to be able to read or copy, or modify. (Whereas a resource is something that is entirely inter

Re: [Distutils] Msgfmt in distutils?

2008-10-01 Thread Toshio Kuratomi
Philip Jenvey wrote: > > On Oct 1, 2008, at 11:25 AM, Toshio Kuratomi wrote: > >> Jeroen Ruigrok van der Werven wrote: >>> -On [20081001 16:28], Toshio Kuratomi ([EMAIL PROTECTED]) wrote: >>>>> and have distutils do the right thing with the .po files at bu

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Toshio Kuratomi
Dave Peterson wrote: > Josselin Mouette wrote: >> Le mercredi 01 octobre 2008 à 14:39 -0400, Phillip J. Eby a écrit : >> >>> To be clear, I mean here that a "file" (as opposed to a resource) is >>> something that the user is expected to be able to read or copy, or >>> modify. (Whereas a resou

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Phillip J. Eby
At 03:14 PM 10/1/2008 -0700, Toshio Kuratomi wrote: resources, as I said needs to be defined. You're saying here that a resource is something internal to the library. A "file" is something that a user can read, copy, or modify. I should probably clarify that I mean "unmediated by the program

Re: [Distutils] [pyconuk] "just use debian"

2008-10-01 Thread Greg Ewing
Josselin Mouette wrote: Le mardi 30 septembre 2008 à 17:20 +0200, Tarek Ziadé a écrit : > > I mean, if you change a public API of your package , you *have* to > change its name ? Yes, this is the requirement for C libraries, and we try to enforce it as well for other languages. Things are so

Re: [Distutils] pre-PEP : Synthesis of previous threads, and irc talks + proposals

2008-10-01 Thread Tarek Ziadé
On Wed, Oct 1, 2008 at 8:28 PM, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 07:55 PM 10/1/2008 +0200, Tarek Ziadé wrote: >> >> On Wed, Oct 1, 2008 at 7:29 PM, Phillip J. Eby <[EMAIL PROTECTED]> >> wrote: >> > I'm -1 on all of the above. I think we need a standard for tools >> > interop >> > (al

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Toshio Kuratomi
Phillip J. Eby wrote: > At 03:14 PM 10/1/2008 -0700, Toshio Kuratomi wrote: >> resources, as I said needs to be defined. You're saying here that a >> resource is something internal to the library. A "file" is something >> that a user can read, copy, or modify. > > I should probably clarify that

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Greg Ewing
Toshio Kuratomi wrote: this is what I was afraid of. This is definitely not a definition of resource-only that has meaning for Linux distributions. None of the data in /usr/share is user-modifiable In that case it must be there because it's architecture-independent, right? But by that crit

Re: [Distutils] "just use debian"

2008-10-01 Thread Toshio Kuratomi
David Cournapeau wrote: > Josselin Mouette wrote: >> Indeed, and the reason is that *functions never disappear from the >> glibc*. > > Yes and no. If you remove a function, you're indeed screwed, because you > can't handle versioning in the header. But you can handle versioning in > libraries at t

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Phillip J. Eby
At 07:14 PM 10/1/2008 -0700, Toshio Kuratomi wrote: In terms of implementation I'd much rather see something less centered on the egg being the right way and the filesystem being a secondary concern. Eggs don't have anything to do with it; in Python, it's simply common sense to put static reso

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Toshio Kuratomi
Greg Ewing wrote: > Toshio Kuratomi wrote: > >> this is what I was afraid of. This is definitely not a definition >> of resource-only that has meaning for Linux distributions. None of the >> data in /usr/share is user-modifiable > > In that case it must be there because it's architecture-indep

Re: [Distutils] "Python Package Management Sucks"

2008-10-01 Thread Ben Finney
Toshio Kuratomi <[EMAIL PROTECTED]> writes: > 3) /usr/share has two purposes/criteria[1]_: architecture > independent and datafiles. /usr/lib has two criteria[2]_: > architecture independent and libraries. With .py{,c,o} we have both > architecture indepedence and a library. So the criteria is in