Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit b6985ab

Browse files
committed
Modified build path for pyconfig.h, and download source file name.
1 parent 799e228 commit b6985ab

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
src/*
44
build/*
55
downloads/*
6+
diff/*

Makefile

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ PROJECTDIR=$(shell pwd)
44
OSX_SDK_ROOT=$(shell xcrun --sdk macosx --show-sdk-path)
55

66
# Version of packages that will be compiled by this meta-package
7-
PYTHON_VERSION=2.7.1
87
FFI_VERSION=3.0.13
8+
PYTHON_VERSION=2.7.1
99

1010
# IPHONE build commands and flags
1111
IPHONE_ARMV7_SDK_ROOT=$(shell xcrun --sdk iphoneos --show-sdk-path)
@@ -91,12 +91,12 @@ clean-Python:
9191
rm -rf build/python
9292

9393
# Down original Python source code archive.
94-
downloads/Python-$(PYTHON_VERSION).tar.bz2:
95-
curl -L https://www.python.org/ftp/python/$(PYTHON_VERSION)/Python-$(PYTHON_VERSION).tar.bz2 > downloads/Python-$(PYTHON_VERSION).tar.bz2
94+
downloads/Python-$(PYTHON_VERSION).tgz:
95+
curl -L https://www.python.org/ftp/python/$(PYTHON_VERSION)/Python-$(PYTHON_VERSION).tgz > downloads/Python-$(PYTHON_VERSION).tgz
9696

9797
# Unpack Python source archive into src working directory
98-
src/Python-$(PYTHON_VERSION): downloads/Python-$(PYTHON_VERSION).tar.bz2
99-
tar xvf downloads/Python-$(PYTHON_VERSION).tar.bz2
98+
src/Python-$(PYTHON_VERSION): downloads/Python-$(PYTHON_VERSION).tgz
99+
tar xvf downloads/Python-$(PYTHON_VERSION).tgz
100100
mv Python-$(PYTHON_VERSION) src
101101

102102
# Patch Python source with iOS patches
@@ -251,9 +251,9 @@ build/Python.framework: build/python/ios-simulator/Python build/python/ios-armv7
251251
cd build/Python.framework && ln -fs Versions/Current/Resources
252252
# Copy the pyconfig headers from the builds, and install the fat header.
253253
mkdir -p build/Python.framework/Versions/$(basename $(PYTHON_VERSION))/Resources/include/python$(basename $(PYTHON_VERSION))
254-
cp build/python/ios-simulator/include/python$(basename $(PYTHON_VERSION))/pyconfig.h build/Python.framework/Versions/$(basename $(PYTHON_VERSION))/Resources/include/pyconfig-simulator.h
255-
cp build/python/ios-armv7/include/python$(basename $(PYTHON_VERSION))/pyconfig.h build/Python.framework/Versions/$(basename $(PYTHON_VERSION))/Resources/include/pyconfig-armv7.h
256-
cp patch/Python/$(PYTHON_VERSION)/pyconfig.h build/Python.framework/Versions/$(basename $(PYTHON_VERSION))/Resources/include
254+
cp build/python/ios-simulator/include/python$(basename $(PYTHON_VERSION))/pyconfig.h build/Python.framework/Versions/$(basename $(PYTHON_VERSION))/Resources/include/python$(basename $(PYTHON_VERSION))/pyconfig-simulator.h
255+
cp build/python/ios-armv7/include/python$(basename $(PYTHON_VERSION))/pyconfig.h build/Python.framework/Versions/$(basename $(PYTHON_VERSION))/Resources/include/python$(basename $(PYTHON_VERSION))/pyconfig-armv7.h
256+
cp patch/Python/$(PYTHON_VERSION)/pyconfig.h build/Python.framework/Versions/$(basename $(PYTHON_VERSION))/Resources/include/python$(basename $(PYTHON_VERSION))/
257257
# Build a fat library with all targets included.
258258
xcrun lipo -create -output build/Python.framework/Versions/Current/Python build/python/ios-simulator/Python build/python/ios-armv7/Python build/python/ios-armv7s/Python
259259
cd build/Python.framework && ln -fs Versions/Current/Python
@@ -264,11 +264,19 @@ env:
264264
# PYTHON_VERSION $(PYTHON_VERSION)
265265
# FFI_VERSION $(FFI_VERSION)
266266
# OSX_SDK_ROOT $(OSX_SDK_ROOT)
267+
267268
# IPHONE_ARMV7_SDK_ROOT $(IPHONE_ARMV7_SDK_ROOT)
268269
# IPHONE_ARMV7_CC $(IPHONE_ARMV7_CC)
269270
# IPHONE_ARMV7_LD $(IPHONE_ARMV7_LD)
270271
# IPHONE_ARMV7_CFLAGS $(IPHONE_ARMV7_CFLAGS)
271272
# IPHONE_ARMV7_LDFLAGS $(IPHONE_ARMV7_LDFLAGS)
273+
274+
# IPHONE_ARMV7S_SDK_ROOT $(IPHONE_ARMV7S_SDK_ROOT)
275+
# IPHONE_ARMV7S_CC $(IPHONE_ARMV7S_CC)
276+
# IPHONE_ARMV7S_LD $(IPHONE_ARMV7S_LD)
277+
# IPHONE_ARMV7S_CFLAGS $(IPHONE_ARMV7S_CFLAGS)
278+
# IPHONE_ARMV7S_LDFLAGS $(IPHONE_ARMV7S_LDFLAGS)
279+
272280
# IPHONE_SIMULATOR_SDK_ROOT $(IPHONE_SIMULATOR_SDK_ROOT)
273281
# IPHONE_SIMULATOR_CC $(IPHONE_SIMULATOR_CC)
274282
# IPHONE_SIMULATOR_LD $(IPHONE_SIMULATOR_LD)

0 commit comments

Comments
 (0)