@@ -177,7 +177,7 @@ $$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz $(PYTHON_HOST
177
177
ifeq ($$(findstring iphone,$$(SDK-$1 ) ) ,)
178
178
cd $$(PYTHON_DIR-$1) && patch -p1 <$(PROJECT_DIR)/patch/Python/Python-tvos.patch
179
179
endif
180
- cp $(PROJECT_DIR ) /patch/Python/Setup.embedded $$(PYTHON_DIR-$1 ) /Modules/Setup.embedded
180
+ cp -f $(PROJECT_DIR ) /patch/Python/Setup.embedded $$(PYTHON_DIR-$1 ) /Modules/Setup.embedded
181
181
# Configure target Python
182
182
cd $$(PYTHON_DIR-$1 ) && PATH=$(PROJECT_DIR ) /$(PYTHON_DIR-host ) /dist/bin:$(PATH ) ./configure \
183
183
CC="$$(CC-$1 ) " LD="$$(CC-$1 ) " \
@@ -193,7 +193,7 @@ $$(PYTHON_DIR-$1)/dist/lib/libpython$(PYTHON_VER).a: $$(PYTHON_DIR-$1)/Makefile
193
193
cd $$(PYTHON_DIR-$1 ) && PATH=$(PROJECT_DIR ) /$(PYTHON_DIR-host ) /dist/bin:$(PATH ) make all install
194
194
195
195
build/$2/$$(pyconfig.h-$1 ) : $$(PYTHON_DIR-$1 ) /dist/include/python$(PYTHON_VER ) /pyconfig.h
196
- cp $$^ $$@
196
+ cp -f $$^ $$@
197
197
198
198
# Dump vars (for test)
199
199
vars-$1:
@@ -240,7 +240,7 @@ $$(OPENSSL_FRAMEWORK-$1): build/$1/libssl.a build/$1/libcrypto.a
240
240
mkdir -p $$(OPENSSL_FRAMEWORK-$1 ) /Versions/$(OPENSSL_VERSION )
241
241
242
242
# Copy the headers (use the version from the simulator because reasons)
243
- cp -r $$(OPENSSL_DIR-$$(firstword $$(TARGETS-$1 ) ) ) /include $$(OPENSSL_FRAMEWORK-$1 ) /Versions/$(OPENSSL_VERSION ) /Headers
243
+ cp -f - r $$(OPENSSL_DIR-$$(firstword $$(TARGETS-$1 ) ) ) /include $$(OPENSSL_FRAMEWORK-$1 ) /Versions/$(OPENSSL_VERSION ) /Headers
244
244
245
245
# Create the fat library
246
246
xcrun libtool -no_warning_for_no_symbols -static \
@@ -266,17 +266,17 @@ $$(PYTHON_FRAMEWORK-$1): build/$1/libpython$(PYTHON_VER).a $$(foreach target,$$(
266
266
mkdir -p $$(PYTHON_RESOURCES-$1 ) /include/python$(PYTHON_VER )
267
267
268
268
# Copy the headers. The headers are the same for every platform, except for pyconfig.h
269
- cp -r $$(PYTHON_DIR-$$(firstword $$(TARGETS-$1 ) ) ) /dist/include/python$(PYTHON_VER ) $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers
270
- cp $$(filter % .h,$$^ ) $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers
271
- cp $$(PYTHON_DIR-$$(firstword $$(TARGETS-$1 ) ) ) /iOS/include/pyconfig.h $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers
269
+ cp -f - r $$(PYTHON_DIR-$$(firstword $$(TARGETS-$1 ) ) ) /dist/include/python$(PYTHON_VER ) $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers
270
+ cp -f $$(filter % .h,$$^ ) $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers
271
+ cp -f $$(PYTHON_DIR-$$(firstword $$(TARGETS-$1 ) ) ) /iOS/include/pyconfig.h $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers
272
272
273
273
# Copy Python.h and pyconfig.h into the resources include directory
274
- cp -r $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers/pyconfig*.h $$(PYTHON_RESOURCES-$1 ) /include/python$(PYTHON_VER )
275
- cp -r $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers/Python.h $$(PYTHON_RESOURCES-$1 ) /include/python$(PYTHON_VER )
274
+ cp -f - r $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers/pyconfig*.h $$(PYTHON_RESOURCES-$1 ) /include/python$(PYTHON_VER )
275
+ cp -f - r $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Headers/Python.h $$(PYTHON_RESOURCES-$1 ) /include/python$(PYTHON_VER )
276
276
277
277
# Copy the standard library from the simulator build
278
278
ifneq ($(TEST ) ,)
279
- cp -r $$(PYTHON_DIR-$$(firstword $$(TARGETS-$1)))/dist/lib $$(PYTHON_RESOURCES-$1)
279
+ cp -f - r $$(PYTHON_DIR-$$(firstword $$(TARGETS-$1)))/dist/lib $$(PYTHON_RESOURCES-$1)
280
280
# Remove the pieces of the resources directory that aren't needed:
281
281
rm -f $$(PYTHON_RESOURCES-$1)/lib/libpython$(PYTHON_VER).a
282
282
rm -rf $$(PYTHON_RESOURCES-$1)/lib/pkgconfig
287
287
endif
288
288
289
289
# Copy fat library
290
- cp $$(filter % .a,$$^ ) $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Python
290
+ cp -f $$(filter % .a,$$^ ) $$(PYTHON_FRAMEWORK-$1 ) /Versions/$(PYTHON_VER ) /Python
291
291
292
292
# Create symlinks
293
293
ln -fs $(PYTHON_VER ) $$(PYTHON_FRAMEWORK-$1 ) /Versions/Current
0 commit comments