summaryrefslogtreecommitdiff
path: root/data/_python3.7.3/make.sh
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-24 19:16:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-24 19:16:46 -0500
commit70c8b04b525b7ed4af0689ebf2b2ad540c95ec11 (patch)
tree2599f0701d555c8f57ee7fc8be7838af8adb5c35 /data/_python3.7.3/make.sh
parent65e6e37fc0426c10c60062a72ea6283a6ec9daa1 (diff)
Python3.7.3 - Fixed "happy little accidents."
- Terminal font: '{' and '(' look the same. Really should've gotten it right the first time.
Diffstat (limited to 'data/_python3.7.3/make.sh')
-rw-r--r--data/_python3.7.3/make.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/data/_python3.7.3/make.sh b/data/_python3.7.3/make.sh
new file mode 100644
index 000000000..a380cacfe
--- /dev/null
+++ b/data/_python3.7.3/make.sh
@@ -0,0 +1,39 @@
+pkg:setup
+
+############################################
+
+# Build for the host. Configure is picky about having python >= 3.7.
+dir=${PWD}
+pushd ..
+ mkdir host-python
+ cd host-python
+ ${dir}/configure --prefix=${PWD}
+ make install -j16
+popd
+export PATH="${dir}/../host-python/bin:$PATH"
+# Feel free to use another variable for this.
+# PYTHON_FOR_BUILD will break the build (don't use it).
+
+###########################################
+
+for x in "${PKG_DATA}"/*.patch; do
+ echo "Patching ${x##*/}"
+ patch -p1 < ${x}
+done
+
+autoreconf -ivf
+pkg:configure --enable-loadable-sqlite-extensions \
+ --with-system-ffi --with-signal-module --enable-big-digits \
+ --with-system-expat --enable-ipv6 --with-ensurepip=install \
+ ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no \
+ ac_cv_func_sendfile=no # <- Sendfile *might* be broken.
+pkg:make
+pkg:install
+
+# (FIXME) Fix the config to allow for pip installs.
+# ./configure / Python will use the $CC from the build.
+sed -i -e "s/-gcc/-clang/" -e "s/-cc/-clang/" \
+ -e "s/-c++/-clang++/" -e "s/-g++/-clang++/" \
+ -e "s/${PKG_TARG}-//" \
+ ${PKG_DEST}/${PKG_TAPF}/lib/python*/_sysconfigdata*.py
+cp ${PKG_DATA}/install_certificates.command ${PKG_DEST}/${PKG_TAPF}/lib/python*