@@ -299,13 +299,6 @@ PYTHON_PLATFORM_CONFIG-$(target)=$$(PYTHON_INSTALL-$(target))/platform-config/$$
299
299
PYTHON_PLATFORM_SITECUSTOMIZE-$(target) =$$(PYTHON_PLATFORM_CONFIG-$(target ) ) /sitecustomize.py
300
300
301
301
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
-
309
302
$$(PYTHON_SRCDIR-$(target ) ) /configure : \
310
303
downloads/Python-$(PYTHON_VERSION ) .tar.gz \
311
304
$$(BZIP2_LIB-$(target ) ) \
@@ -319,15 +312,15 @@ $$(PYTHON_SRCDIR-$(target))/configure: \
319
312
# Apply target Python patches
320
313
cd $$(PYTHON_SRCDIR-$(target ) ) && patch -p1 < $(PROJECT_DIR ) /patch/Python/Python.patch
321
314
# Make sure the binary scripts are executable
322
- chmod 755 $$( RESCDIR -$(target ) ) /bin/*
315
+ chmod 755 $( PROJECT_DIR ) / $$( PYTHON_SRCDIR -$(target ) )/ $( os ) /Resources /bin/*
323
316
# Touch the configure script to ensure that Make identifies it as up to date.
324
317
touch $$(PYTHON_SRCDIR-$(target ) ) /configure
325
318
326
319
$$(PYTHON_SRCDIR-$(target ) ) /Makefile : \
327
320
$$(PYTHON_SRCDIR-$(target ) ) /configure
328
321
# Configure target Python
329
322
cd $$(PYTHON_SRCDIR-$(target ) ) && \
330
- PATH=" $$ (RESCDIR -$( target) )/bin:$( PATH) " \
323
+ PATH=" $( PROJECT_DIR ) / $$ (PYTHON_SRCDIR -$( target) )/ $( os ) /Resources /bin:$( PATH) " \
331
324
./configure \
332
325
LIBLZMA_CFLAGS=" -I$$ (XZ_INSTALL-$( target) )/include" \
333
326
LIBLZMA_LIBS=" -L$$ (XZ_INSTALL-$( target) )/lib -llzma" \
@@ -351,14 +344,14 @@ $$(PYTHON_SRCDIR-$(target))/python.exe: $$(PYTHON_SRCDIR-$(target))/Makefile
351
344
@echo " >>> Build Python for $( target) "
352
345
353
346
cd $$(PYTHON_SRCDIR-$(target ) ) && \
354
- PATH=" $$ (RESCDIR -$( target) )/bin:$( PATH) " \
347
+ PATH=" $( PROJECT_DIR ) / $$ (PYTHON_SRCDIR -$( target) )/ $( os ) /Resources /bin:$( PATH) " \
355
348
make -j8 all \
356
349
2>&1 | tee -a ../python-$(PYTHON_VERSION ) .build.log
357
350
358
351
$$(PYTHON_LIB-$(target ) ) : $$(PYTHON_SRCDIR-$(target ) ) /python.exe
359
352
@echo " >>> Install Python for $( target) "
360
353
cd $$(PYTHON_SRCDIR-$(target ) ) && \
361
- PATH=" $$ (RESCDIR -$( target) )/bin:$( PATH) " \
354
+ PATH=" $( PROJECT_DIR ) / $$ (PYTHON_SRCDIR -$( target) )/ $( os ) /Resources /bin:$( PATH) " \
362
355
make install \
363
356
2>&1 | tee -a ../python-$(PYTHON_VERSION ) .install.log
364
357
567
560
$$(foreach target,$$(SDK_TARGETS-$(sdk)),cp $$(PYTHON_INCLUDE-$$(target))/pyconfig.h $$(PYTHON_INCLUDE-$(sdk))/pyconfig-$$(ARCH-$$(target)).h; )
568
561
569
562
# 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
571
564
endif
572
565
573
566
ifneq ($(sdk ) ,macabi)
@@ -739,7 +732,7 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
739
732
$$(foreach sdk,$$(filter-out macabi,$$(SDKS-$(os))),cp -r $$(PYTHON_INSTALL-$$(sdk))/lib $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk)); )
740
733
$$(foreach sdk,$$(SDKS-$(os)),cp -r $$(PYTHON_INSTALL-$$(sdk))/platform-config $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk)); )
741
734
742
- ifeq ($(filter $(os ) ,iOS visionOS) ,$(os ) )
735
+ ifeq ($(filter $(os ) ,iOS visionOS MacCatalyst ) ,$(os ) )
743
736
@echo ">>> Clone testbed project for $(os)"
744
737
$(HOST_PYTHON) $$(PYTHON_SRCDIR-$$(firstword $$(SDK_TARGETS-$$(firstword $$(SDKS-$(os))))))/$(os)/testbed clone --framework $$(PYTHON_XCFRAMEWORK-$(os)) support/$(PYTHON_VER)/$(os)/testbed
745
738
endif
0 commit comments