Skip to content

Commit

Permalink
fix python pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
cpunion committed Nov 19, 2024
1 parent 4387ea3 commit 37d8372
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
12 changes: 12 additions & 0 deletions .github/assets/python3-embed.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}
includedir=${prefix}/include

Name: Python
Description: Embed Python into an application
Requires:
Version: 3.13
Libs.private:
Libs: -L${libdir} -lpython313
Cflags: -I${includedir}
15 changes: 1 addition & 14 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,7 @@ jobs:
if: matrix.sys.os == 'windows-latest'
run: |
mkdir -p $PKG_CONFIG_PATH
cat > $PKG_CONFIG_PATH/python3-embed.pc <<EOF
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}
includedir=${prefix}/include
Name: Python
Description: Embed Python into an application
Requires:
Version: 3.13
Libs.private:
Libs: -L${libdir} -lpython313
Cflags: -I${includedir}
EOF
cp .github/assets/python3-embed.pc $PKG_CONFIG_PATH/
- name: Install tiny-pkg-config for windows (patch)
if: matrix.sys.os == 'windows-latest'
Expand Down

0 comments on commit 37d8372

Please sign in to comment.