Hi all,
The following patch (everything between the starred lines) is how I
got PySide working with PyInstaller on my Mac. My version of PySide
is the binary distribution from the PySide website. What I see is
that the PySide developers install the libraries into /usr/lib, which
is excluded by default by PyInstaller. I agree that /usr/lib on the
Mac is probably/usually not installed into by 3rd party libraries, it
does so happen on occasion. In this case, I don't know what the best
solution is (which may include asking PySide to change their install
location). In any case, just wanted to share the results of my
findings.
******************************************
Index: PyInstaller/bindepend.py
===================================================================
--- PyInstaller/bindepend.py (revision 1406)
+++ PyInstaller/bindepend.py (working copy)
@@ -411,7 +411,11 @@
candidatelib = npth
else:
candidatelib = lib
- if (excludesRe.search(candidatelib) and (not includes or
+
+ if candidatelib.find('pyside') >= 0 or
candidatelib.find('shiboken') >= 0:
+ # do nothing
+ pass
+ elif (excludesRe.search(candidatelib) and (not includes or
not includesRe.search(candidatelib))):
if candidatelib.find('libpython') < 0 and \
candidatelib.find('Python.framework') < 0:
@@ -462,7 +466,7 @@
This implementation is for otool platforms"""
# dyld searches these paths for framework libs
# we ignore DYLD_FALLBACK_LIBRARY_PATH for now (man dyld)
- fwpaths = ['/Library/Frameworks', '/Network/Library/Frameworks',
'/System/Library/Frameworks']
+ fwpaths = ['/Library/Frameworks', '/Network/Library/Frameworks',
'/System/Library/Frameworks', '/usr/lib']
for p in reversed(os.environ.get('DYLD_FRAMEWORK_PATH',
'').split(':')):
if p:
fwpaths.insert(0, p)
******************************************
--
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.