From 94692af34cf629b1c2c0bba25e4a5706d7933f07 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Fri, 6 May 2022 07:04:45 +0000 Subject: [PATCH] python-windows: Exclude unit tests from output --- projects/python-windows/build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/python-windows/build b/projects/python-windows/build index e5d0b0a..1f54c68 100644 --- a/projects/python-windows/build +++ b/projects/python-windows/build @@ -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 ],