Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 59 lines (33 sloc) 1.941 kB
c7d3e33 @photron Refactor msys_setup.bat into multiple files
authored
1 if %sentinel% NEQ __sentinel__ exit
2
3 set gnome_url=http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.20
4 call %tmp%\wget_and_unpack1.bat %gnome_url% gtk+_2.20.0-1_win32.zip %msys_dir%
5 call %tmp%\wget_and_unpack1.bat %gnome_url% gtk+-dev_2.20.0-1_win32.zip %msys_dir%
2ee1359 @photron Install Python bindings for glib, cairo and gtk
authored
6
7 set gnome_url=http://ftp.gnome.org/pub/GNOME/binaries/win32/libglade/2.6
8 call %tmp%\wget_and_unpack1.bat %gnome_url% libglade_2.6.4-1_win32.zip %msys_dir%
9
10
11
12 call %tmp%\install_file.bat %base_dir%\patch_pygtk.sh %msys_dir%\bin\patch_pygtk.sh
13
14
15
16 if exist %tmp%\pygtk-2.16.0+glade.win32-py2.6.exe.done goto done_pygtk
17
18 set cd_backup=%CD%
19 cd tmp
20
21 if exist pygtk-2.16.0+glade.win32-py2.6.exe goto have_pygtk_archive
22 %wget% http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.16/pygtk-2.16.0+glade.win32-py2.6.exe
23 :have_pygtk_archive
24
25 if exist pygtk-2.16.0+glade.win32-py2.6 goto have_pygtk_directory
26 %zip% x -opygtk-2.16.0+glade.win32-py2.6 pygtk-2.16.0+glade.win32-py2.6.exe
27 :have_pygtk_directory
28
29 cd pygtk-2.16.0+glade.win32-py2.6
30
31
32 xcopy DATA\* %msys_dir% /E /I /Y
33 xcopy PLATLIB\* %python_dir%\Lib\site-packages /E /I /Y
34
35 cd %cd_backup%
36
37 rem xcopy %python_dir%\Lib\site-packages\gtk-2.0\gtk\_gtk.pyd %python_dir%\DLLs\gtk\ /E /I /Y
38
39 echo done > %tmp%\pygtk-2.16.0+glade.win32-py2.6.exe.done
40
41 :done_pygtk
42
43
44 set pygtkcodegen=%msys_dir%\bin\pygtk-codegen-2.0
45
46 echo #!/bin/sh > %pygtkcodegen%
47 echo prefix= >> %pygtkcodegen%
48 echo datarootdir=${prefix}/share >> %pygtkcodegen%
49 echo datadir=${datarootdir} >> %pygtkcodegen%
50 echo codegendir=${datadir}/pygobject/2.0/codegen >> %pygtkcodegen%
51 echo PYTHONPATH=$codegendir >> %pygtkcodegen%
52 echo export PYTHONPATH >> %pygtkcodegen%
53 echo exec /bin/python $codegendir/codegen.py "$@" >> %pygtkcodegen%
54
55
56
57
58 %msys_dir%\bin\sh.exe -ec patch_pygtk.sh
Something went wrong with that request. Please try again.