python-windows: Exclude unit tests from output

pull/174/head
Jeremy Rand 2 years ago
parent f42532efa2
commit 94692af34c
No known key found for this signature in database
GPG Key ID: EB03139A459DD06E

@ -4,6 +4,8 @@ distdir=/var/tmp/dist/[% project %]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
# Set up compiler
shopt -s globstar
# Required for "import ssl"
tar -C /var/tmp/dist -xf [% c('input_files_by_name/openssl') %]
openssldir=/var/tmp/dist/openssl/openssl
@ -82,6 +84,10 @@ find $distdir -name '*.a' -exec rm '{}' +
# Required for "import ssl" and "import ctypes"
cp $openssldir/bin/*.dll /var/tmp/dist/*libffi*/[% c("arch") %]-w64-mingw32/.libs/*.dll $gcclibs/*.dll $distdir/bin/
# Delete unit tests to save space (71 to 49 MB)
cd $distdir/bin
rm -rf ./**/test ./**/tests ./**/test_*
cd /var/tmp/dist
[% c('tar', {
tar_src => [ project ],

Loading…
Cancel
Save