Skip to content
Closed
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
6 changes: 6 additions & 0 deletions recipe/build_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ if [[ -f ${PREFIX}/bin/python${VER}m ]]; then
fi
ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python
ln -s ${PREFIX}/bin/pydoc${VER} ${PREFIX}/bin/pydoc
# Workaround for https://github.com/conda/conda/issues/10969
ln -s ${PREFIX}/bin/python3.10 ${PREFIX}/bin/python3.1

# Remove test data to save space
# Though keep `support` as some things use that.
Expand Down Expand Up @@ -505,3 +507,7 @@ rm ${PREFIX}/lib/libpython${VER}.a
if [[ "$target_platform" == linux-* ]]; then
rm ${PREFIX}/include/uuid.h
fi

# Workaround for old conda versions which fail to install noarch packages for Python 3.10+
# https://github.com/conda/conda/issues/10969
ln -s "${PREFIX}/lib/python3.10" "${PREFIX}/lib/python3.1"
5 changes: 4 additions & 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 = 1 %}
{% set build_number = 2 %}
{% set channel_targets = ('abc', 'def') %}

# this makes the linter happy
Expand Down Expand Up @@ -272,6 +272,9 @@ outputs:
- popd
- python run_test.py
- test ! -f default.profraw # [osx]
# Test workaround for https://github.com/conda/conda/issues/10969
- test -d "$PREFIX/lib/python3.1/site-packages" # [unix]
- python3.1 --version # [unix]

- name: libpython-static
script: build_static.sh # [unix]
Expand Down