I decided to try to speed up pymol-py for the
1.0 release package currently on fink tracking.
I was able to easily precompile the python scripts
in this package with the lines...

cd %i/lib/%n/modules
%p/bin/python%type_raw[python] -O %p/lib/python%type_raw[python]/compileall.py .

The resulting package installs fine. However it seems to cause problems when
executing 'fink -k rebuild pymol-py25' a second time. I get errors like...

dpkg-deb: building package `pymol-py25' in 
`/sw/fink/10.4/local/main/binary-darwin-powerpc/pymol-py25_1.0-1000_darwin-powerpc.deb'.
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-pymol-py25-1.0-1000
(Reading database ... 74526 files and directories currently installed.)
Removing fink-buildlock-pymol-py25-1.0-1000 ...
Reading buildlock packages...
/sw/bin/dpkg-lockwait -i 
/sw/fink/dists/local/main/binary-darwin-powerpc/pymol-py25_1.0-1000_darwin-powerpc.deb
(Reading database ... 74525 files and directories currently installed.)
Preparing to replace pymol-py25 1.0-1000 (using 
.../pymol-py25_1.0-1000_darwin-powerpc.deb) ...
Unpacking replacement pymol-py25 ...
/sw/bin/dpkg: error processing 
/sw/fink/dists/local/main/binary-darwin-powerpc/pymol-py25_1.0-1000_darwin-powerpc.deb
 (--install):
 failed to rmdir/unlink 
`/sw/lib/pymol-py25/modules/pymol/wizard/appearance.py.dpkg-new': No such file 
or directory
/sw/bin/dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 
/sw/fink/dists/local/main/binary-darwin-powerpc/pymol-py25_1.0-1000_darwin-powerpc.deb
### execution of /sw/bin/dpkg-lockwait failed, exit code 1

Does anyone understand why this would be happening? I think we may have been 
seeing something like
that with the ccpnmr-py package also (which also precompiles its python 
scripts). Also do we
have any packages which does this by compiling and removing those files in 
postinstallation and
postremoval scripts? Thanks in advance for any advice.
              Jack

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to