Right, that's what I ended up doing, because both were needed.  Pyinstaller
is doing the right thing.  Would it be better, though, if (on systems where
symlinks are supported) pyinstaller recognized that a dependency it wanted
was a symlink, and create the analogous thing?  For example, if I'm
dependent on

a.so ->a.so.0.1

then copy a.so.0.1 and create the a.so symlink to it, in the output
directory of pyinstaller.

This is basically what I do as a clean up operation (on OSX) and it seems to
work fine.


On Tue, Nov 23, 2010 at 2:25 PM, Giovanni Bajo <[email protected]> wrote:

> On Sat, 2010-11-20 at 07:42 -0800, dhyams wrote:
> > On OSX (I have not had a chance to check linux, where similar issues
> > would probably show up), I'm getting copies of the same shared lib in
> > my one-dir style distribution.  For example,
> >
> >
> > ['cepro/libwx_baseu_xml-2.9.1.0.0.dylib', 'cepro/
> > libwx_baseu_xml-2.9.dylib']
> > ['cepro/libwx_baseu-2.9.1.0.0.dylib', 'cepro/libwx_baseu-2.9.dylib']
> > ['cepro/libwx_osx_carbonu_html-2.9.1.0.0.dylib', 'cepro/
> > libwx_osx_carbonu_html-2.9.dylib']
> > ['cepro/libwx_osx_carbonu_core-2.9.1.0.0.dylib', 'cepro/
> > libwx_osx_carbonu_core-2.9.dylib']['cepro/
> > libwx_osx_carbonu_adv-2.9.1.0.0.dylib', 'cepro/
> > libwx_osx_carbonu_adv-2.9.dylib']
> >
> >
> > I can easily ( and did ) write some code in my .spec file to remove
> > the duplicates, but I figured you would want to know.  When I get some
> > more time, I'll try to suss out why this is happening...but I thought
> > I'd post it so that if you know immediately, it can be fixed.
> >
> > Basically it's just picking up both the actual library and its
> > symlink, and copying both.
>
> The point here is that one should package both the symlink *and* the
> regular file (because it looks like both are required). It is well
> possible that PyInstaller simply resolves the symlink without noticing.
> --
> Giovanni Bajo   ::  [email protected]
> Develer S.r.l.  ::  http://www.develer.com
>
> My Blog: http://giovanni.bajo.it
> Last post: Compile-time Function Execution in D
>
> --
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pyinstaller%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pyinstaller?hl=en.
>
>


-- 
Daniel Hyams
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to