On jeu, 2005-06-09 at 19:45 +0200, Josselin Mouette wrote:
> Indeed, when -V is set, the wrong /usr/lib/python2.X/site-packages
> directories are searched. Does the following patch work for you?
>
> --- /usr/bin/dh_python 2004-12-14 19:08:50.000000000 +0100
> +++ dh_python 2005-06-09 19:41:25.196693440 +0200
> @@ -139,8 +139,8 @@
> }
> }
> if ($package !~ /^python[0-9].[0-9]-/) {
> - push @dirs, "usr/lib/python$python_version/site-packages" ;
> - push @dirs_so, "usr/lib/python$python_version/site-packages" ;
> + push @dirs, "usr/lib/$usepython/site-packages" ;
> + push @dirs_so, "usr/lib/$usepython/site-packages" ;
> $look_for_pythonXY = 0;
> }
It does, but I think deeper work should probably be done. I'd suggest
doing s/python_version/system_python_version/ to keep it clear that the
version you're talking about has nothing to do with the version of
python required to actually run this app.
Hmm. I wonder if the dependancy logic should be touched so that when -V
is specified that $python becomes $usepython. I could look at that
later if you'd like to complete this.
Tks,
Jeff Bailey
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]