[Debichem-devel] Bug#516040: pymol: hard-codes the location to python modules

Josselin Mouette joss at debian.org
Sat Feb 21 15:52:16 UTC 2009


severity 516040 wishlist
thanks

Le jeudi 19 février 2009 à 00:10 +0100, Josselin Mouette a écrit :
> the pymol package uses a hard-coded path to the python modules:
>         export PYMOL_PATH=/var/lib/python-support/python2.5/pymol/
> 
> However, because of numerous requests from developers, the installation
> path for these modules is going to change, so this will make pymol fail.
> 
> If you really want to keep hard-coding this path, it is possible to
> handle this with a synchronized upload and a Breaks:, but I’d like to
> avoid it if possible. Instead, I’d like to suggest alternate solutions
> that are independent from the packaging layers:
>       * Detect the modules location dynamically from the script. You can
>         see an example in the pychecker package.
>       * Move the __init__.py script that you are actually executing
>         to /usr/bin. There is no point in shipping it in a Python
>         directory if it meant to be executed.
>       * Move part or all of the files to a private modules directory.

In the meantime, I have found a way to deal gracefully with the upgrade
in such a situation.

I still recommend that you fix this bug but it is not as important as I
initially thought.

Cheers,
-- 
 .''`.      Debian 5.0 "Lenny" has been released!
: :' :
`. `'   Last night, Darth Vader came down from planet Vulcan and told
  `-    me that if you don't install Lenny, he'd melt your brain.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.alioth.debian.org/pipermail/debichem-devel/attachments/20090221/91214df8/attachment.pgp 


More information about the Debichem-devel mailing list