Skip to content

Commit

Permalink
cp3
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Nov 14, 2023
1 parent 9729f89 commit 4975e3a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/wheels-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,21 @@ function build {
build_simple xorgproto 2023.2 https://www.x.org/pub/individual/proto
build_simple libXau 1.0.11 https://www.x.org/pub/individual/lib
build_simple libpthread-stubs 0.5 https://xcb.freedesktop.org/dist
cp /Users/runner/hostedtoolcache/Python/Current/x64/share/pkgconfig/xcb-proto.pc /Users/runner/hostedtoolcache/Python/Current/x64/share/pkgconfig
if [ -f /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc ]; then
cp /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc /Library/Frameworks/Python.framework/Versions/Current/lib/pkgconfig
elif [ -f /Users/runner/hostedtoolcache/Python/Current/x64/share/pkgconfig/xcb-proto.pc ]; then
cp /Users/runner/hostedtoolcache/Python/Current/x64/share/pkgconfig/xcb-proto.pc /Users/runner/hostedtoolcache/Python/Current/x64/share/pkgconfig
fi
else
sed s/\${pc_sysrootdir\}// /usr/local/share/pkgconfig/xcb-proto.pc > /usr/local/lib/pkgconfig/xcb-proto.pc
fi
build_simple libxcb $LIBXCB_VERSION https://www.x.org/releases/individual/lib
if [ -n "$IS_MACOS" ]; then
cp /Users/runner/hostedtoolcache/Python/Current/x64/include/xcb/xcb.h /usr/local/include/xcb/xcb.h
if [ -f /Library/Frameworks/Python.framework/Versions/Current/x64/include/xcb/xcb.h ]; then
cp /Library/Frameworks/Python.framework/Versions/Current/x64/include/xcb/xcb.h /usr/local/include/xcb/xcb.h
elif [ -f /Users/runner/hostedtoolcache/Python/Current/x64/include/xcb/xcb.h ]; then
cp /Users/runner/hostedtoolcache/Python/Current/x64/include/xcb/xcb.h /usr/local/include/xcb/xcb.h
fi

BUILD_PREFIX=$ORIGINAL_BUILD_PREFIX
PKG_CONFIG_PATH=$ORIGINAL_PKG_CONFIG_PATH
Expand Down

0 comments on commit 4975e3a

Please sign in to comment.