Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Oct 8, 2024
1 parent a5d912d commit 32f73c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipe/build_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,11 @@ fi
# to be installed into <prefix>/lib/python3.13t/site-packages, but conda
# installs them to <prefix>/lib/python3.13/site-packages.
# The workaround is to add all these wrong paths to sys.path using
# site.addsitedir so that cpython and other tools like pip know about these
# a pth file so that cpython and other tools like pip know about these
# locations to check when importing packages and uninstalling packages.
# When installing packages, pip will use the correct location
# <prefix>/lib/python3.13t/site-packages.
# Note that these directories are not added to sys.path if they do not exist.
SP_DIR="${PREFIX}/lib/python${PY_VER}${THREAD}/site-packages"
if [[ ${PY_FREETHREADING} == yes ]]; then
echo "${PREFIX}/lib/python${PY_VER}/site-packages" >> $SP_DIR/conda-site.pth
Expand Down

0 comments on commit 32f73c3

Please sign in to comment.