File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 553553# to be installed into <prefix>/lib/python3.13t/site-packages, but conda
554554# installs them to <prefix>/lib/python3.13/site-packages.
555555# The workaround is to add all these wrong paths to sys.path using
556- # site.addsitedir so that cpython and other tools like pip know about these
556+ # a pth file so that cpython and other tools like pip know about these
557557# locations to check when importing packages and uninstalling packages.
558558# When installing packages, pip will use the correct location
559559# <prefix>/lib/python3.13t/site-packages.
560+ # Note that these directories are not added to sys.path if they do not exist.
560561SP_DIR=" ${PREFIX} /lib/python${PY_VER}${THREAD} /site-packages"
561562if [[ ${PY_FREETHREADING} == yes ]]; then
562563 echo " ${PREFIX} /lib/python${PY_VER} /site-packages" >> $SP_DIR /conda-site.pth
You can’t perform that action at this time.
0 commit comments