We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7215284 commit 420934dCopy full SHA for 420934d
cpython-unix/build-cpython.sh
@@ -194,9 +194,16 @@ popd
194
find ${ROOT}/out/python/install -type d -name __pycache__ -print0 | xargs -0 rm -rf
195
196
# 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
204
LIBPYTHON=libpython${PYTHON_MAJMIN_VERSION}m.a
205
ln -sf \
- 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} \
207
${ROOT}/out/python/install/lib/${LIBPYTHON}
208
209
# Ditto for Python executable.
0 commit comments