grab_files.sh 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Download the necessary files
  2. wget -O gtkbundle.zip http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+-bundle_2.24.10-20120208_win32.zip
  3. wget -O pygobject.exe http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.28/pygobject-2.28.3.win32-py2.7.exe
  4. wget -O pycairo.exe http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.8/pycairo-1.8.10.win32-py2.7.exe
  5. wget -O pygtk.exe http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-2.24.0.win32-py2.7.exe
  6. wget -O numpy.exe http://downloads.sourceforge.net/project/numpy/NumPy/1.9.2/numpy-1.9.2-win32-superpack-python2.7.exe
  7. wget -O matplotlib.exe https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.4.3/windows/matplotlib-1.4.3.win32-py2.7.exe
  8. # GTK runtime
  9. mkdir gtkbundle
  10. unzip -d gtkbundle gtkbundle.zip
  11. cd gtkbundle
  12. rm -r src man include share/doc share/man share/gtk-doc share/gtk-2.0/demo bin/gtk-demo.exe etc/bash_completion.d
  13. cd ..
  14. # Python bindings
  15. mkdir pygobject
  16. unzip -d pygobject pygobject.exe
  17. mkdir pycairo
  18. unzip -d pycairo pycairo.exe
  19. mkdir pygtk
  20. unzip -d pygtk pygtk.exe
  21. mkdir numpy
  22. unzip -d numpy numpy.exe
  23. mkdir matplotlib
  24. unzip -d matplotlib matplotlib.exe
  25. # Reassemble into pynsist_pkgs
  26. echo -n "Assembling GTK files into pynsist_pkgs... "
  27. rm -r pynsist_pkgs
  28. mkdir pynsist_pkgs
  29. mv gtkbundle pynsist_pkgs/gtk
  30. cp -r pygobject/PLATLIB/* pynsist_pkgs
  31. rm -r pygobject
  32. cp -r pycairo/PLATLIB/* pynsist_pkgs
  33. cp -r pycairo/DATA/lib/site-packages/cairo/* pynsist_pkgs/cairo
  34. rm -r pycairo
  35. cp -r pygtk/PLATLIB/* pynsist_pkgs
  36. rm -r pygtk
  37. cp -r matplotlib/PLATLIB/* pynsist_pkgs
  38. rm -r matplotlib
  39. #Unzip numpy into base directory
  40. 7z e numpy.exe
  41. #Unzip the NoSSE package into the numpy directory
  42. 7z x numpy-1.9.2-nosse.exe -onumpy
  43. cp -r numpy/PLATLIB/* pynsist_pkgs
  44. rm -r numpy
  45. rm -r pynsist_pkgs/gtk-2.0/tests
  46. echo "done"