blob: c456e55b6e2396fdc675f01691e5e3b5efb42630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- 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
|