From 68c386eec3753e403554e457d34486e3c129eae7 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Wed, 4 May 2022 21:01:50 +0000 Subject: [PATCH] python-windows: Add openssl dependency --- projects/python-windows/build | 9 +++++++++ projects/python-windows/config | 3 +++ 2 files changed, 12 insertions(+) diff --git a/projects/python-windows/build b/projects/python-windows/build index 8d016fa..c501eaf 100644 --- a/projects/python-windows/build +++ b/projects/python-windows/build @@ -4,6 +4,12 @@ distdir=/var/tmp/dist/[% project %] [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %] # Set up compiler +# Required for "import ssl" +tar -C /var/tmp/dist -xf [% c('input_files_by_name/openssl') %] +openssldir=/var/tmp/dist/openssl/openssl +cp -a $openssldir/include/openssl /var/tmp/dist/mingw-w64/[% c("arch") %]-w64-mingw32/include/openssl +cp -a $openssldir/lib/* $openssldir/bin/*.dll /var/tmp/dist/mingw-w64/[% c("arch") %]-w64-mingw32/lib/ + mkdir -p /var/tmp/build tar -C /var/tmp/build -xf [% c('input_files_by_name/python') %] tar -C /var/tmp/build -xf [% c('input_files_by_name/meson') %] @@ -59,6 +65,9 @@ ninja -C builddir install find $distdir -name '*.a' -exec rm '{}' + # These files don't reproduce, and are useless +# Required for "import ssl" +cp $openssldir/bin/*.dll $gcclibs/*.dll $distdir/bin/ + cd /var/tmp/dist [% c('tar', { tar_src => [ project ], diff --git a/projects/python-windows/config b/projects/python-windows/config index 955e167..a0132d5 100644 --- a/projects/python-windows/config +++ b/projects/python-windows/config @@ -51,3 +51,6 @@ input_files: URL: https://wrapdb.mesonbuild.com/v1/projects/sqlite/3250100/1/get_zip sha256sum: cbb697a1e4649cf6b7f28d82048109d87ccbf01106e1d5a68f763d4685d8607c - filename: omit-build-timestamp.patch + - name: openssl + project: openssl +