build 681 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. [% pc('python', 'var/setup', { python_tarfile => c('input_files_by_name/python') }) %]
  4. tar xvf [% project %]-[% c('version') %].tar.gz
  5. cd [% project %]-[% c('version') %]
  6. python3 setup.py sdist --format=gztar
  7. mkdir -p /var/tmp/build/sdist/[% project %]
  8. tar -C /var/tmp/build/sdist/[% project %] -xvf dist/attrs-[% c('version') %].tar.gz
  9. mkdir -p /var/tmp/dist/[% project %]
  10. cd /var/tmp/dist/[% project %]
  11. mkdir -p ./[% project %]
  12. cp -a /var/tmp/build/sdist/[% project %]/attrs*/src/[% project %]/*.py ./[% project %]
  13. [% c('tar', {
  14. tar_src => '.',
  15. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  16. }) %]