Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions recipe/build_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -516,5 +516,24 @@ if [[ "$target_platform" == linux-* ]]; then
rm ${PREFIX}/include/uuid.h
fi

# See ${RECIPE_DIR}/sitecustomize.py
cp "${RECIPE_DIR}/sitecustomize.py" "${PREFIX}/lib/python${VERABI}/sitecustomize.py"
# Workaround for https://github.com/conda/conda/issues/14053
# Older conda versions install noarch: python packages in wrong places.
# For example python3.1 because older conda assumed python minor version
# will have only one digit. noarhc pkgs for freethreading builds are supposed
# 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
# 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
fi
# Workaround for https://github.com/conda/conda/issues/10969
echo "${PREFIX}/lib/python3.1/site-packages" >> $SP_DIR/conda-site.pth
# A python version independent directory that ABI3 and noarch packages can use.
# This is unused at the moment, but keeping it here for experimentation.
echo "${PREFIX}/lib/python/site-packages" >> $SP_DIR/conda-site.pth
3 changes: 1 addition & 2 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ numpy:
- 1.26
gil_type:
- normal
# Will be enabled as part of https://anaconda.atlassian.net/browse/PKG-5855
# - disabled # [not (s390x or (osx and x86_64))]
- disabled # [not s390x]
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% set ver2 = '.'.join(version.split('.')[0:2]) %}
{% set ver2nd = ''.join(version.split('.')[0:2]) %}
{% set ver3nd = ''.join(version.split('.')[0:3]) %}
{% set build_number = 0 %}
{% set build_number = 1 %}
{% set channel_targets = ('abc', 'def') %}
# this is just for the initial build, to break dependencies with python -> pip -> libpython-static
{% set bootstrap = "false" %}
Expand Down