summaryrefslogtreecommitdiff
path: root/data/_python3.7/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/_python3.7/make.sh')
-rw-r--r--data/_python3.7/make.sh23
1 files changed, 17 insertions, 6 deletions
diff --git a/data/_python3.7/make.sh b/data/_python3.7/make.sh
index 128f98d09..50c7d7310 100644
--- a/data/_python3.7/make.sh
+++ b/data/_python3.7/make.sh
@@ -4,18 +4,25 @@ pkg:extract
# Build for the host. Configure is picky about having python >= 3.7.
-if [ -z "$(which python3.7)" ]; then
+pushd Python*
+pkg:patch
+popd
+
+if true; then
+#if [ -z "$(which python3.7)" ]; then
SRC_DIR="$(echo *)"
- mkdir host-python
- cd host-python
- ../Python*/configure --prefix=${PWD}
+ mkdir build-python
+ cd build-python
+ ../Python*/configure --prefix=${PWD} --with-openssl=/opt/local/
make install -j16
export PATH="${PWD}/bin:$PATH"
cd ..
+#fi
+else
+ export PATH="${PWD}/build-python/bin:$PATH"
fi
cd Python*
-pkg:patch
# Feel free to use another variable for this.
# PYTHON_FOR_BUILD will break the build (don't use it).
@@ -24,7 +31,11 @@ pkg:patch
export cross_compiling=yes
autoconf
-pkg:configure CPPFLAGS="-I$(PKG_DEST_ ncurses)"/usr/include/ncursesw \
+cd ..
+mkdir host-python
+cd host-python
+PKG_CONF="$(ls ../Python*/configure)" pkg:configure \
+ CPPFLAGS="-I$(PKG_DEST_ ncurses)"/usr/include/ncursesw \
--enable-loadable-sqlite-extensions \
--with-system-ffi --with-signal-module --enable-big-digits \
--with-system-expat --enable-ipv6 --without-ensurepip \