Skip to content

Commit 420934d

Browse files
committed
unix: resolve python arch in build-cpython.sh
And with this we can get an archive out of the temporary directory!
1 parent 7215284 commit 420934d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cpython-unix/build-cpython.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,16 @@ popd
194194
find ${ROOT}/out/python/install -type d -name __pycache__ -print0 | xargs -0 rm -rf
195195

196196
# Symlink libpython so we don't have 2 copies.
197+
198+
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
199+
PYTHON_ARCH="darwin"
200+
else
201+
PYTHON_ARCH="x86_64-linux-gnu"
202+
fi
203+
197204
LIBPYTHON=libpython${PYTHON_MAJMIN_VERSION}m.a
198205
ln -sf \
199-
python${PYTHON_MAJMIN_VERSION}/config-${PYTHON_MAJMIN_VERSION}m-x86_64-linux-gnu/${LIBPYTHON} \
206+
python${PYTHON_MAJMIN_VERSION}/config-${PYTHON_MAJMIN_VERSION}m-${PYTHON_ARCH}/${LIBPYTHON} \
200207
${ROOT}/out/python/install/lib/${LIBPYTHON}
201208

202209
# Ditto for Python executable.

0 commit comments

Comments
 (0)