mirror of
https://github.com/namecoin/ncdns-repro
synced 2024-11-16 12:12:44 +00:00
23 lines
694 B
Plaintext
23 lines
694 B
Plaintext
|
#!/bin/bash
|
||
|
[% c("var/set_default_env") -%]
|
||
|
[% pc('python', 'var/setup', { python_tarfile => c('input_files_by_name/python') }) %]
|
||
|
|
||
|
tar xvf [% project %]-[% c('version') %].tar.gz
|
||
|
cd [% project %]-[% c('version') %]
|
||
|
|
||
|
python3 setup.py sdist --format=gztar
|
||
|
|
||
|
mkdir -p /var/tmp/build/sdist/[% project %]
|
||
|
tar -C /var/tmp/build/sdist/[% project %] -xvf dist/async-timeout-[% c('version') %].tar.gz
|
||
|
|
||
|
mkdir -p /var/tmp/dist/[% project %]
|
||
|
cd /var/tmp/dist/[% project %]
|
||
|
|
||
|
mkdir -p ./[% project %]
|
||
|
cp -a /var/tmp/build/sdist/[% project %]/async-timeout*/[% project %]/*.py ./[% project %]/
|
||
|
|
||
|
[% c('tar', {
|
||
|
tar_src => '.',
|
||
|
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
|
||
|
}) %]
|