@@ -30,7 +30,7 @@ BUILD_NUMBER=custom
3030MACOSX_DEPLOYMENT_TARGET =10.8
3131
3232# Version of packages that will be compiled by this meta-package
33- PYTHON_VERSION =3.8.0
33+ PYTHON_VERSION =3.8.3
3434PYTHON_VER =$(basename $(PYTHON_VERSION ) )
3535
3636OPENSSL_VERSION_NUMBER =1.1.1
@@ -227,16 +227,12 @@ endif
227227
228228# Build OpenSSL
229229$$(OPENSSL_DIR-$1 ) /libssl.a $$(OPENSSL_DIR-$1 ) /libcrypto.a: $$(OPENSSL_DIR-$1 ) /Makefile
230- # Installing multiple times causes problems with the man directory.
231- # Since we're just overwriting anyway, and we're not going to keep the man files
232- # delete the man directory (if it exists) first.
233- rm -rf $(PROJECT_DIR ) /build/$2/openssl/man
234- # Make the build
230+ # Make the build, and install just the software (not the docs)
235231 cd $$(OPENSSL_DIR-$1 ) && \
236232 CC="$$(CC-$1 ) " \
237233 CROSS_TOP="$$(dir $$(SDK_ROOT-$1 ) ) .." \
238234 CROSS_SDK="$$(notdir $$(SDK_ROOT-$1 ) ) " \
239- make all && make install
235+ make all && make install_sw
240236
241237# Unpack BZip2
242238$$(BZIP2_DIR-$1 ) /Makefile: downloads/bzip2-$(BZIP2_VERSION ) .tgz
@@ -276,17 +272,22 @@ $$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz $$(PYTHON_HOS
276272 tar zxf downloads/Python-$(PYTHON_VERSION ) .tgz --strip-components 1 -C $$(PYTHON_DIR-$1 )
277273 # Apply target Python patches
278274 cd $$(PYTHON_DIR-$1 ) && patch -p1 < $(PROJECT_DIR ) /patch/Python/Python.patch
279- cp -f $(PROJECT_DIR ) /patch/Python/Setup.embedded $$(PYTHON_DIR-$1 ) /Modules/Setup.embedded
280-
281275 # Configure target Python
282276ifeq ($2,macOS)
283- # Make a fully embedded macOS build
277+ # A locally hosted Python requires a full Setup.local configuration
278+ # because there's no PYTHON_HOST_PLATFORM to cause Setup.local to be
279+ # generated
284280 cat $$(PYTHON_DIR-$1)/Modules/Setup.embedded $(PROJECT_DIR)/patch/Python/Setup.macOS-x86_64 > $$(PYTHON_DIR-$1)/Modules/Setup.local
281+ # Make a fully embedded macOS build
285282 cd $$(PYTHON_DIR-$1) && MACOSX_DEPLOYMENT_TARGET=$$(MACOSX_DEPLOYMENT_TARGET) ./configure \
286283 --prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
287284 --without-doc-strings --enable-ipv6 --without-ensurepip \
288285 $$(PYTHON_CONFIGURE-$2)
289286else
287+ # Copy in the embedded and platform/arch configuration
288+ cp -f $(PROJECT_DIR)/patch/Python/Setup.embedded $$(PYTHON_DIR-$1)/Modules/Setup.embedded
289+ if [ -e "$(PROJECT_DIR)/patch/Python/Setup.$2-$$(ARCH-$1)" ]; then \
290+ cp -f $(PROJECT_DIR)/patch/Python/Setup.$2-$$(ARCH-$1) $$(PYTHON_DIR-$1)/Modules/Setup.$2-$$(ARCH-$1); fi
290291 cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) ./configure \
291292 CC="$$(CC-$1)" LD="$$(CC-$1)" \
292293 --host=$$(MACHINE_DETAILED-$1)-apple-$(shell echo $2 | tr '[:upper:]' '[:lower:]') \
0 commit comments