config 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # vim: filetype=yaml sw=2
  2. version: 2.7.5
  3. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  4. var:
  5. compiler: mingw-w64
  6. arch_deps:
  7. - p7zip-full
  8. - faketime
  9. - wine
  10. container:
  11. use_container: 1
  12. setup: |
  13. [% pc('mingw-w64', 'var/setup') %]
  14. # wine path ($HOME/.wine) gets included in some binaries, so set HOME
  15. # to a fixed path.
  16. export HOME=/var/tmp/home
  17. mkdir -p $HOME
  18. WINEROOT=$HOME/.wine/drive_c
  19. wine wineboot -i
  20. cp -a /var/tmp/dist/winpython/wineroot/windows/* $WINEROOT/windows/
  21. export PYTHON="wine /var/tmp/dist/winpython/python.exe"
  22. # Set the timestamp on every .pyc file in a zip file, and re-dzip the zip file.
  23. function py2exe_zip_timestomp {
  24. ZIPFILE="$1"
  25. local tmpdir="$(mktemp -d)"
  26. local tmpzip="$(mktemp -u)"
  27. unzip -d "$tmpdir" "$ZIPFILE"
  28. cd "$tmpdir"
  29. find . -name '*.pyc' -print0 | xargs -0 /var/tmp/dist/winpython/pyc-timestamp.sh "2000-01-01 00:00:00"
  30. [% c('zip', {
  31. zip_src => [ '.' ],
  32. zip_args => '$tmpzip',
  33. }) %]
  34. cd -
  35. mv -f "$tmpzip" "$ZIPFILE"
  36. rm -rf "$tmpdir"
  37. }
  38. input_files:
  39. - project: container-image
  40. - URL: 'https://www.python.org/ftp/python/[% c("version") %]/python-[% c("version") %].msi'
  41. file_gpg_id: 1
  42. sig_ext: asc
  43. gpg_keyring: winpython.gpg
  44. - URL: https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.tar.gz
  45. sha256sum: 75d288687066ed124311d6ca5f40ffa92a0e81adcd7fff318c6e84082713cf39
  46. - URL: https://downloads.sourceforge.net/py2exe/0.6.9/py2exe-0.6.9.win32-py2.7.exe
  47. sha256sum: 610a8800de3d973ed5ed4ac505ab42ad058add18a68609ac09e6cf3598ef056c
  48. - name: '[% c("var/compiler") %]'
  49. project: '[% c("var/compiler") %]'
  50. - filename: wine-wrappers
  51. - filename: pyc-timestamp.sh