--- setup/togl_setup.py.orig 2005-01-30 23:26:54.137328288 -0200 +++ setup/togl_setup.py 2005-01-30 23:27:41.729093240 -0200 @@ -142,13 +142,14 @@ outfiles.append(out) # make package index for tcl/tk + indexFile = os.path.join( togl_dir, 'pkgIndex.tcl' ) if not dry_run: - # only if real install - install.announce('running "pkg_mkIndex %s %s"' % (togl_dir, togl)) - if install.verbose: - tk.tk.call('pkg_mkIndex','-verbose',togl_dir, togl) - else: - tk.tk.call('pkg_mkIndex',togl_dir, togl) - outfiles.append(os.path.join(togl_dir,'pkgIndex.tcl')) + # only if real install + install.announce( 'creating pkgIndex.tcl in %(togl_dir)s for %(togl)s'%locals()) + file = open( indexFile, 'w') + file.write("package ifneeded Togl 1.5 [list load [file join $dir Togl.so]]") + file.close() + outfiles.append(indexFile) + return outfiles