@@ -239,6 +239,17 @@ clean-Python:
239
239
build/* /Support/Python.xcframework \
240
240
build/* /Support/Python
241
241
242
+ dev-clean-Python :
243
+ @echo " >>> Partially clean Python build products to the point where local code modifications can be made"
244
+ rm -rf \
245
+ dist/Python-$(PYTHON_VER ) -* \
246
+ build/* /Python-$(PYTHON_VERSION ) -* /python.exe \
247
+ build/* /Python-$(PYTHON_VERSION ) -* /_install \
248
+ build/* /python \
249
+ build/* /python-* .log \
250
+ build/* /Support/Python.xcframework \
251
+ build/* /Support/Python
252
+
242
253
# Download original Python source code archive.
243
254
downloads/Python-$(PYTHON_VERSION ) .tgz :
244
255
@echo " >>> Download Python sources"
@@ -455,7 +466,6 @@ $$(PYTHON_DIR-$(target))/Makefile: \
455
466
$$(XZ_XCFRAMEWORK-$(os ) ) \
456
467
$$(OPENSSL_XCFRAMEWORK-$(os ) ) \
457
468
$$(LIBFFI_XCFRAMEWORK-$(os ) ) \
458
- $$(PYTHON_XCFRAMEWORK-macOS ) \
459
469
downloads/Python-$(PYTHON_VERSION ) .tgz
460
470
@echo " >>> Unpack and configure Python for $( target) "
461
471
mkdir -p $$(PYTHON_DIR-$(target ) )
@@ -731,16 +741,15 @@ ifneq ($(os),macOS)
731
741
LIBFFI_XCFRAMEWORK-$(os) =build/$(os ) /Support/libFFI.xcframework
732
742
LIBFFI_DIR-$(os) =build/$(os ) /libffi-$(LIBFFI_VERSION )
733
743
734
- $$(LIBFFI_DIR-$(os ) ) /darwin_common/include/ffi.h : downloads/libffi-$(LIBFFI_VERSION ) .tgz $$( PYTHON_XCFRAMEWORK-macOS )
744
+ $$(LIBFFI_DIR-$(os ) ) /darwin_common/include/ffi.h : downloads/libffi-$(LIBFFI_VERSION ) .tgz
735
745
@echo " >>> Unpack and configure libFFI sources on $( os) "
736
746
mkdir -p $$(LIBFFI_DIR-$(os ) )
737
747
tar zxf downloads/libffi-$(LIBFFI_VERSION ) .tgz --strip-components 1 -C $$(LIBFFI_DIR-$(os ) )
738
748
# Patch the build to add support for new platforms
739
749
cd $$(LIBFFI_DIR-$(os ) ) && patch -p1 < $(PROJECT_DIR ) /patch/libffi.patch
740
750
# Configure the build
741
751
cd $$(LIBFFI_DIR-$(os ) ) && \
742
- PATH=$(PROJECT_DIR ) /$(PYTHON_DIR-macOS ) /_install/bin:$(PATH ) \
743
- python3 generate-darwin-source-and-headers.py --only-$(shell echo $(os ) | tr '[:upper:]' '[:lower:]') \
752
+ python$(PYTHON_VER ) generate-darwin-source-and-headers.py --only-$(shell echo $(os ) | tr '[:upper:]' '[:lower:]') \
744
753
2>&1 | tee -a ../libffi-$(os ) .config.log
745
754
746
755
$$(LIBFFI_XCFRAMEWORK-$(os ) ) : $$(foreach sdk,$$(SDKS-$(os ) ) ,$$(LIBFFI_FATLIB-$$(sdk ) ) )
0 commit comments