Google Groups Home
Help | Sign in
PyInstaller and Solaris
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
akineko  
View profile
 More options Jun 29, 2:17 am
From: akineko <akin...@gmail.com>
Date: Sat, 28 Jun 2008 23:17:18 -0700 (PDT)
Local: Sun, Jun 29 2008 2:17 am
Subject: PyInstaller and Solaris
Hello,

After I have figured out _tkinter.so issue, I tried PyInstall under
Solaris environment.
It still failed to find a path to TCL/TK.

I debugged into the PyInstaller scripts and found that it was because
the generated output from ldd on Solaris and the generated output from
ldd on Linux are in different formats.

   libc.so.6 => /lib64/libc.so.6 (0x00002b8a5c627000)    {Linux}
   libtk8.5.so =>   /usr/local/lib/libtk8.5.so           {Solaris}

In the bindepend.py script, there is a regular expression to extract
the file name and the path:
bindepend.py (line 284 of 330)

        m = re.search(r"\s+(.*?)\s+=>\s+(.*?)(\s+\(.*\))?", line)

This expression works fine with the ldd output from Linux but doesn't
work with the ldd output from Solaris.

I have changed the regular expression to:

        m = re.search(r"\s+(.*?)\s+=>\s+(.*?)(\s+|$)", line)

Then, finally PyInstaller recognized the TCL/TK installation under
Solaris.

It would be very nice if PyInstaller updated the bindepend.py so that
the PyInstaller works on Solaris platform as well. As stated in my
another posting, PyInstaller won't recognized TCL/TK installation
unless _tkinter.so is in lib-dynload directory and Python was built
with "shared" option.

Hope this posting will help others.

Cheers,
Aki Niimura


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google