Verifying module dependencies (Was: [Help] Failed to apply new Python policy to GNUmed packages)

2009-03-29 Thread Andreas Tille
On Sat, 28 Mar 2009, Emilio Pozuelo Monfort wrote: I got an error that mx.DateTime can't be imported, so you probably need to depend on python-egenix-mxdatetime). Thanks to Emilio I was able to fix the gnumed-client package which was in fact lacking the python-egenix-mxdatetime build dependenc

Re: [Help] Failed to apply new Python policy to GNUmed packages

2009-03-29 Thread Andreas Tille
On Sun, 29 Mar 2009, Emilio Pozuelo Monfort wrote: In that case the .pyc files won't be loaded, but the .py ones, I guess (please somebody correct me if I'm wrong). Nothing to worry about as people will usually be using the default interpreter. I admit I really prefered the former behaviour of

Re: [Help] Failed to apply new Python policy to GNUmed packages

2009-03-29 Thread Andreas Tille
On Sun, 29 Mar 2009, Emilio Pozuelo Monfort wrote: You're missing a 'export' before setting the variable (or call python in the same line you set it). Uhm - stupid me. That's a beginners fault ... :-( In the first releases of gnumed-client package I used Gnumed.pth but dropped this since I

Re: [Help] Failed to apply new Python policy to GNUmed packages

2009-03-29 Thread Andreas Tille
On Sun, 29 Mar 2009, Karsten Hilbert wrote: - My suggestion would be: - call gnumed.py with the python -m ... option if that works - this would rid us of that hardcoded path - a great thing - leave modules where they are and GNUmed finds them by default - if the Debian package ma

Re: [Help] Failed to apply new Python policy to GNUmed packages

2009-03-29 Thread Andreas Tille
On Sun, 29 Mar 2009, Karsten Hilbert wrote: Well, you are trying to solve two things at once: 1) make the "python -m" calling convention work 2) move GNUmed modules to a private location While, yes, this WAS recommended in that report I tried furiously to argue against doing both at once becau

Re: [Help] Failed to apply new Python policy to GNUmed packages

2009-03-29 Thread Emilio Pozuelo Monfort
Karsten Hilbert wrote: >> You're missing a 'export' before setting the variable (or call python in >> the >> same line you set it). > > Ah, thanks. Emilio, you are clearly a better expert on > packaging Python code under Debian than me :-) That was shell ;) >>> I really wonder how this new pyth

Re: [Help] Failed to apply new Python policy to GNUmed packages

2009-03-29 Thread Karsten Hilbert
> >> That is, you're now shipping some modules in a private location > > > > This is what I understood as recommendation in #516037. > > Yes, that's recommended, but it's not a requirement. > > Anyway, you almost got it! > > >> (usr/share is > >> not in PYTHONPATH), so they are not found when y

Re: [Help] Failed to apply new Python policy to GNUmed packages

2009-03-29 Thread Emilio Pozuelo Monfort
Hiya, Andreas Tille wrote: > On Sat, 28 Mar 2009, Emilio Pozuelo Monfort wrote: > >> That is, you're now shipping some modules in a private location > > This is what I understood as recommendation in #516037. Yes, that's recommended, but it's not a requirement. Anyway, you almost got it! >> (

Re: [Help] Failed to apply new Python policy to GNUmed packages

2009-03-29 Thread Karsten Hilbert
For what it's worth here is my concluding suggestion in that bug thread: - My suggestion would be: - call gnumed.py with the python -m ... option if that works - this would rid us of that hardcoded path - a great thing - leave modules where they are and GNUmed finds them by default

Re: [Help] Failed to apply new Python policy to GNUmed packages

2009-03-29 Thread Karsten Hilbert
> > That is, you're now shipping some modules in a private location > > This is what I understood as recommendation in #516037. Well, you are trying to solve two things at once: 1) make the "python -m" calling convention work 2) move GNUmed modules to a private location While, yes, this WAS rec