@@ -299,13 +299,6 @@ PYTHON_PLATFORM_CONFIG-$(target)=$$(PYTHON_INSTALL-$(target))/platform-config/$$
299299PYTHON_PLATFORM_SITECUSTOMIZE-$(target) =$$(PYTHON_PLATFORM_CONFIG-$(target ) ) /sitecustomize.py
300300
301301
302-
303- ifneq ($$(BASE-$(target ) ) ,macabi)
304- RESCDIR-$(target) =$(PROJECT_DIR ) /$$(PYTHON_SRCDIR-$(target ) ) /$(os ) /Resources
305- else
306- RESCDIR-$(target) =$(PROJECT_DIR ) /$$(PYTHON_SRCDIR-$(target ) ) /MacCatalyst/Resources
307- endif
308-
309302$$(PYTHON_SRCDIR-$(target ) ) /configure : \
310303 downloads/Python-$(PYTHON_VERSION ) .tar.gz \
311304 $$(BZIP2_LIB-$(target ) ) \
@@ -319,15 +312,15 @@ $$(PYTHON_SRCDIR-$(target))/configure: \
319312 # Apply target Python patches
320313 cd $$(PYTHON_SRCDIR-$(target ) ) && patch -p1 < $(PROJECT_DIR ) /patch/Python/Python.patch
321314 # Make sure the binary scripts are executable
322- chmod 755 $$(RESCDIR -$(target ) ) /bin/*
315+ chmod 755 $$(PYTHON_SRCDIR -$(target ) ) / $( os ) /Resources /bin/*
323316 # Touch the configure script to ensure that Make identifies it as up to date.
324317 touch $$(PYTHON_SRCDIR-$(target ) ) /configure
325318
326319$$(PYTHON_SRCDIR-$(target ) ) /Makefile : \
327320 $$(PYTHON_SRCDIR-$(target ) ) /configure
328321 # Configure target Python
329322 cd $$(PYTHON_SRCDIR-$(target ) ) && \
330- PATH=" $$ (RESCDIR -$( target) )/bin:$( PATH) " \
323+ PATH=" $( PROJECT_DIR ) / $$ (PYTHON_SRCDIR -$( target) )/ $( os ) /Resources /bin:$( PATH) " \
331324 ./configure \
332325 LIBLZMA_CFLAGS=" -I$$ (XZ_INSTALL-$( target) )/include" \
333326 LIBLZMA_LIBS=" -L$$ (XZ_INSTALL-$( target) )/lib -llzma" \
@@ -351,14 +344,14 @@ $$(PYTHON_SRCDIR-$(target))/python.exe: $$(PYTHON_SRCDIR-$(target))/Makefile
351344 @echo " >>> Build Python for $( target) "
352345
353346 cd $$(PYTHON_SRCDIR-$(target ) ) && \
354- PATH=" $$ (RESCDIR -$( target) )/bin:$( PATH) " \
347+ PATH=" $( PROJECT_DIR ) / $$ (PYTHON_SRCDIR -$( target) )/ $( os ) /Resources /bin:$( PATH) " \
355348 make -j8 all \
356349 2>&1 | tee -a ../python-$(PYTHON_VERSION ) .build.log
357350
358351$$(PYTHON_LIB-$(target ) ) : $$(PYTHON_SRCDIR-$(target ) ) /python.exe
359352 @echo " >>> Install Python for $( target) "
360353 cd $$(PYTHON_SRCDIR-$(target ) ) && \
361- PATH=" $$ (RESCDIR -$( target) )/bin:$( PATH) " \
354+ PATH=" $( PROJECT_DIR ) / $$ (PYTHON_SRCDIR -$( target) )/ $( os ) /Resources /bin:$( PATH) " \
362355 make install \
363356 2>&1 | tee -a ../python-$(PYTHON_VERSION ) .install.log
364357
567560 $$(foreach target,$$(SDK_TARGETS-$(sdk)),cp $$(PYTHON_INCLUDE-$$(target))/pyconfig.h $$(PYTHON_INCLUDE-$(sdk))/pyconfig-$$(ARCH-$$(target)).h; )
568561
569562 # Copy the cross-target header from the source folder of the first target in the $(sdk) SDK
570- cp $$(RESCDIR -$$(firstword $$(SDK_TARGETS-$(sdk))))/pyconfig.h $$(PYTHON_INCLUDE-$(sdk))/pyconfig.h
563+ cp $$(PYTHON_SRCDIR -$$(firstword $$(SDK_TARGETS-$(sdk))))/$(os)/Resources /pyconfig.h $$(PYTHON_INCLUDE-$(sdk))/pyconfig.h
571564endif
572565
573566ifneq ($(sdk ) ,macabi)
@@ -739,7 +732,7 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
739732 $$(foreach sdk,$$(filter-out macabi,$$(SDKS-$(os))),cp -r $$(PYTHON_INSTALL-$$(sdk))/lib $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk)); )
740733 $$(foreach sdk,$$(SDKS-$(os)),cp -r $$(PYTHON_INSTALL-$$(sdk))/platform-config $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk)); )
741734
742- ifeq ($(filter $(os ) ,iOS visionOS) ,$(os ) )
735+ ifeq ($(filter $(os ) ,iOS visionOS MacCatalyst ) ,$(os ) )
743736 @echo ">>> Clone testbed project for $(os)"
744737 $(HOST_PYTHON) $$(PYTHON_SRCDIR-$$(firstword $$(SDK_TARGETS-$$(firstword $$(SDKS-$(os))))))/$(os)/testbed clone --framework $$(PYTHON_XCFRAMEWORK-$(os)) support/$(PYTHON_VER)/$(os)/testbed
745738endif
0 commit comments