Skip to content
Open
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
11 changes: 11 additions & 0 deletions recipe/build_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,17 @@ if [[ "$target_platform" == linux-* ]]; then
rm ${PREFIX}/include/uuid.h
fi

if [[ "$target_platform" == osx-* ]]; then
awk -F',' '$1 == "func" || $1 == "data" { print "_" $2 }' Doc/data/stable_abi.dat > stable_abi_exports.txt

$CC -dynamiclib \
-install_name @rpath/libpython3.dylib \
-compatibility_version 3.0 -current_version ${PY_VER}.0 \
-Wl,-reexport_library,${PREFIX}/lib/libpython${VERABI}.dylib \
-Wl,-exported_symbols_list,stable_abi_exports.txt \
-o ${PREFIX}/lib/libpython3.dylib
fi

# 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
Expand Down
1 change: 1 addition & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ outputs:
- for f in ${CONDA_PREFIX}/lib/python*/_sysconfig*.py; do echo "Checking $f:"; if [[ `rg @[^@]*@ $f` ]]; then echo "FAILED ON $f"; cat $f; exit 1; fi; done # [linux64 or osx]
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a # [unix]
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix]
- test -f ${PREFIX}/lib/libpython3${SHLIB_EXT} # [unix]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have to restrict this to the non-debug ABI?

Suggested change
- test -f ${PREFIX}/lib/libpython3${SHLIB_EXT} # [unix]
- test -f ${PREFIX}/lib/libpython3${SHLIB_EXT} # [unix and (build_type != "debug")]

{% if freethreading == "yes" %}
- if not exist %PREFIX%\\libs\\python3t.lib exit 1 # [win]
- if not exist %PREFIX%\\libs\\python{{ ver2nd }}t.lib exit 1 # [win]
Expand Down
Loading