Hi guys,

I'm working on educational software for beginning music students
(mainly violin and cello), and I'd like to distribute my software for
widespread testing.  Unfortunately, that means getting stuff working
under windows instead of being unix-only.  :)

While investigating whether python is suitable for this purpose, I ran
into a few problems getting tk to work on windows.  The below patch
fixes these.

(sorry for the inline patch; the google groups interface doesn't let
me attach a file as far as I can see)

Cheers,
- Graham


Index: Configure.py
===================================================================
--- Configure.py        (revision 765)
+++ Configure.py        (working copy)
@@ -92,7 +92,7 @@
     if not (target_iswin):
         saveexcludes = bindepend.excludes
         bindepend.excludes = {}
-    pattern = [r'libtcl(\d\.\d)?\.(so|dylib)', r'(?i)tcl(\d\d)\.dll']
[target_iswin]
+    pattern = [r'libtcl(\d\.\d)?\.(so|dylib)', r'(?i)tcl(\d\d)\.dll']
[(target_iswin or cygwin)]
     a = mf.ImportTracker()
     a.analyze_r('Tkinter')
     binaries = []
@@ -106,7 +106,7 @@
         if mo:
             ver = mo.group(1)
             tclbindir = os.path.dirname(fnm)
-            if target_iswin:
+            if target_iswin or cygwin:
                 ver = ver[0] + '.' + ver[1:]
             elif ver is None:
                 # we found "libtcl.so.0" so we need to get the
version from the lib directory
@@ -127,6 +127,9 @@
                         config['TCL_root'] = os.path.join(tclbindir,
attempt, tclnm)
                         config['TK_root'] = os.path.join(tclbindir,
attempt, tknm)
                         break
+            elif cygwin:
+                config['TCL_root'] = os.path.join(tclbindir,'../
share',tclnm)
+                config['TK_root'] = os.path.join(tclbindir,'../
share',tknm)
             else:
                 config['TCL_root'] = os.path.join(tclbindir, tclnm)
                 config['TK_root'] = os.path.join(tclbindir, tknm)
-- 
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