Skip to content

Commit 1f7ac38

Browse files
committed
Modify macOS support package to be a lib-based package.
1 parent c3bd1f5 commit 1f7ac38

File tree

5 files changed

+8
-60
lines changed

5 files changed

+8
-60
lines changed

Makefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ update-patch:
9494
# Generate a diff from the clone of the python/cpython Github repository
9595
# Requireds patchutils (installable via `brew install patchutils`)
9696
if [ -z "$(PYTHON_REPO_DIR)" ]; then echo "\n\nPYTHON_REPO_DIR must be set to the root of your Python github checkout\n\n"; fi
97-
cd $(PYTHON_REPO_DIR) && git diff -D v$(PYTHON_VERSION) $(PYTHON_VER) | filterdiff -X $(PROJECT_DIR)/patch/Python/diff-exclude.lst -p 1 --clean > $(PROJECT_DIR)/patch/Python/Python.patch
97+
cd $(PYTHON_REPO_DIR) && git diff -D v$(PYTHON_VERSION) $(PYTHON_VER) | filterdiff -X $(PROJECT_DIR)/patch/Python/diff.exclude -p 1 --clean > $(PROJECT_DIR)/patch/Python/Python.patch
9898

9999
###########################################################################
100100
# OpenSSL
@@ -377,16 +377,11 @@ endif
377377
echo "BZip2: $(BZIP2_VERSION)" >> build/$1/Support/VERSIONS
378378
echo "OpenSSL: $(OPENSSL_VERSION)" >> build/$1/Support/VERSIONS
379379
echo "XZ: $(XZ_VERSION)" >> build/$1/Support/VERSIONS
380-
ifeq ($1,macOS)
381-
cp -r build/$1/Python-$(PYTHON_VERSION)-macOS/dist build/$1/python
382-
mv build/$1/Support/VERSIONS build/$1/python/VERSIONS
383-
tar zcvf $$@ -X patch/Python/exclude.macOS -C build/$1/python `ls -A build/$1/python`
384-
else
380+
385381
# Build a "full" tarball with all content for test purposes
386-
tar zcvf dist/Python-$(PYTHON_VER)-$1-support.test-$(BUILD_NUMBER).tar.gz -X patch/Python/test-exclude.embedded -C build/$1/Support `ls -A build/$1/Support`
382+
tar zcvf dist/Python-$(PYTHON_VER)-$1-support.test-$(BUILD_NUMBER).tar.gz -X patch/Python/test.exclude -C build/$1/Support `ls -A build/$1/Support`
387383
# Build a distributable tarball
388-
tar zcvf $$@ -X patch/Python/exclude.embedded -C build/$1/Support `ls -A build/$1/Support`
389-
endif
384+
tar zcvf $$@ -X patch/Python/release.exclude -C build/$1/Support `ls -A build/$1/Support`
390385

391386
# Build OpenSSL
392387
OpenSSL-$1: $$(OPENSSL_FRAMEWORK-$1)
File renamed without changes.

patch/Python/exclude.macOS

Lines changed: 0 additions & 49 deletions
This file was deleted.

patch/Python/exclude.embedded renamed to patch/Python/release.exclude

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# we exclude from the embedded device Python-Apple-support tarballs.
33
# It is used by `tar -X` during the Makefile build.
44
#
5-
# Remove binaries; not needed for
5+
# Remove binaries; not needed for embedded builds
66
Python/Resources/bin
77
# Remove includes; use the version packaged in Headers
88
Python/Resources/include
@@ -21,12 +21,13 @@ Python/Resources/lib/python*/test
2121
Python/Resources/lib/python*/lib-dynload/_test*.so
2222
Python/Resources/lib/python*/lib-dynload/_ctypes_test*.so
2323
Python/Resources/lib/python*/lib-dynload/xxlimited*.so
24-
Python/Resources/lib/python*/lib-dynload/_xxtestfuzz.so
24+
Python/Resources/lib/python*/lib-dynload/_xx*.so
2525
# Remove wsgiref web app module; it's unusual that mobile apps would
2626
# start a web app server with it.
2727
Python/Resources/lib/python*/wsgiref
2828
# Remove command-line curses toolkit.
2929
Python/Resources/lib/python*/curses
30+
Python/Resources/lib/python*/lib-dynload/_curses*.so
3031
# Remove config-* directory, which is used for compiling C extension modules.
3132
Python/Resources/lib/python*/config-*
3233
# Remove ensurepip. If user code needs pip, it can add it to
@@ -37,6 +38,7 @@ Python/Resources/lib/python*/idlelib
3738
Python/Resources/lib/python*/tkinter
3839
Python/Resources/lib/python*/turtle.py
3940
Python/Resources/lib/python*/turtledemo
41+
Python/Resources/lib/python*/lib-dynload/_tkinter*.so
4042
# Remove site-packages directory. The template unpacks user code and
4143
# dependencies to a different path.
4244
Python/Resources/lib/python*/site-packages
File renamed without changes.

0 commit comments

Comments
 (0)