Skip to content

Commit 7c9ec06

Browse files
committed
Fixes #239 - Purge .orig files from release packages.
1 parent 6f5fa58 commit 7c9ec06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ $$(PYTHON_LIB-$(target)): $$(PYTHON_SRCDIR-$(target))/python.exe
316316
make install \
317317
2>&1 | tee -a ../python-$(PYTHON_VERSION).install.log
318318

319+
# Remove any .orig files produced by the compliance patching process
320+
find $$(PYTHON_INSTALL-$(target)) -name "*.orig" -exec rm {} \;
321+
319322
endif
320323

321324
PYTHON_SITECUSTOMIZE-$(target)=$(PROJECT_DIR)/support/$(PYTHON_VER)/$(os)/platform-site/$(target)/sitecustomize.py
@@ -549,6 +552,9 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
549552
# Apply the App Store compliance patch
550553
patch --strip 2 --directory $$(PYTHON_INSTALL_VERSION-macosx)/lib/python$(PYTHON_VER) --input $(PROJECT_DIR)/patch/Python/app-store-compliance.patch
551554

555+
# Remove any .orig files produced by the patching process
556+
find $$(PYTHON_INSTALL_VERSION-macosx) -name "*.orig" -exec rm {} \;
557+
552558
# Rewrite the framework to make it standalone
553559
patch/make-relocatable.sh $$(PYTHON_INSTALL_VERSION-macosx) 2>&1 > /dev/null
554560

0 commit comments

Comments
 (0)