[Patches] [ python-Patches-681927 ] bundlebuilder: Add dylibs, frameworks to the bundle

SourceForge.net noreply@sourceforge.net
Thu, 20 Mar 2003 18:47:28 -0800


Patches item #681927, was opened at 2003-02-06 13:07
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=681927&group_id=5470

Category: Macintosh
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Robin Dunn (robind)
Assigned to: Just van Rossum (jvr)
Summary: bundlebuilder: Add dylibs, frameworks to the bundle

Initial Comment:
This patch adds the ability to specify that shared
libraries and Frameworks (the last is untested as of
yet) to the bundle.  It is mostly by Kevin Olliver with
some suggestions by me.

In addition to copying the files into the bundle the
launcher script in the bundle is modified to set the
DYLD_LIBRARY_PATH to the right place.



----------------------------------------------------------------------

>Comment By: Robin Dunn (robind)
Date: 2003-03-20 18:47

Message:
Logged In: YES 
user_id=53955

New patch attached

----------------------------------------------------------------------

Comment By: Just van Rossum (jvr)
Date: 2003-03-18 10:22

Message:
Logged In: YES 
user_id=92689

Having a manual option is a fine start. But can any of you rework the patch so it doesn't mess with whitespace, and update it for current CVS?

----------------------------------------------------------------------

Comment By: Kevin Ollivier (kollivier)
Date: 2003-02-07 12:52

Message:
Logged In: YES 
user_id=248468

I'll take a look at otool and see if it does what we need. As Robin mentioned, I think giving both the manual and auto options is the best approach. 

I'll also check into the dependency on Apple's Dev Tools, but even if it is dependent we could just switch off auto-detection if users don't have it and spit out a warning. Another possible way to alleviate this problem may be to integrate with distutils. (i.e. make a 'buildbundle' option) That should at least allow us to find and include any libraries the developer linked against. 

----------------------------------------------------------------------

Comment By: Just van Rossum (jvr)
Date: 2003-02-07 00:59

Message:
Logged In: YES 
user_id=92689

I use tabs for indentation and use spaces for alignment... So things look nice _and_ wont screw up with different tab settings. But I admit that using such a non-standard way is asking for trouble. I'll convert to spaces after this patch has been done (unless you prefer I do it _before_ ;-).

(Btw. it might be that otool is only available with the apple dev tools, which would be a shame since we otherwise don't depend in dev tools being available. Hm.)

----------------------------------------------------------------------

Comment By: Robin Dunn (robind)
Date: 2003-02-06 15:20

Message:
Logged In: YES 
user_id=53955

Oops, sorry for the witespace patches.  I noticed that my
lines used spaces but the lines around them were using tabs
so I just ran a tabify on the whole file without taking
another look at the resulting patch file after that.  Looks
like some of other lines that wre added since 2.3a1 have
spaces too and that is where the problem comes from.  I'll
redo the patch but the whole file should probably be either
tabified or untabified after you are done applying it.

I didn't know about otool. I'll pass that on to Kevin.  We
discussed about doing automatic finding of libs but didn't
know how to go about it so thought that this would be a good
start.  Also we figured that even if there was a way to do
it that you would probably want a way to inlcude other files
that may not get automatically found, or to exclude some
that were, so there should be command line options for it
anyway. 

----------------------------------------------------------------------

Comment By: Just van Rossum (jvr)
Date: 2003-02-06 14:35

Message:
Logged In: YES 
user_id=92689

Cool. There's a problem with the patch, though: although I apologize for using tabs to begin with, please keep the tab usage consistent. There are quite a few hunks in the patch that only touch whitespace and that's both undesirable as well as blurring the intent of the patch... Could you upload a cleaner one?

Btw. for the --standalone build mode it would be possible to calculate all framework/dylib dependencies with the otool tool. If this were implemented perhaps the --lib option wouldn't even be needed? Another question remains: if we include a framework, is there a way to strip it from redunant files, eg. headers? If we would use this mechanism to include Python.framework we would definitely need a way to trim it down, eg. all of lib is taken care of by modulefinder anyway. If you (or Kevin) have any ideas about that, pls contact me off line.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=681927&group_id=5470