diff --git a/recipe/build_base.sh b/recipe/build_base.sh index 96221de2..a49fded3 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -534,3 +534,6 @@ 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/python${VER}" "${PREFIX}/lib/python3.1" + +# Add a custom site-packages dir ${PREFIX}/lib/site-packages to install abi3 packages +cp "${RECIPE_DIR}/sitecustomize.py" "${PREFIX}/lib/python${VER}/sitecustomize.py" diff --git a/recipe/meta.yaml b/recipe/meta.yaml index a7fdc6ca..bd29c491 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -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 %} # this makes the linter happy {% set channel_targets = channel_targets or 'conda-forge main' %} diff --git a/recipe/sitecustomize.py b/recipe/sitecustomize.py new file mode 100644 index 00000000..2115108a --- /dev/null +++ b/recipe/sitecustomize.py @@ -0,0 +1,2 @@ +import site, sys, os +site.addsitedir(os.path.join(sys.prefix, 'lib', 'python', 'site-packages'))