From 37d837287961a6d5378a5fbf2988a9732efa2edb Mon Sep 17 00:00:00 2001 From: Li Jie Date: Tue, 19 Nov 2024 22:17:57 +0800 Subject: [PATCH] fix python pkg-config --- .github/assets/python3-embed.pc | 12 ++++++++++++ .github/workflows/go.yml | 15 +-------------- 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 .github/assets/python3-embed.pc diff --git a/.github/assets/python3-embed.pc b/.github/assets/python3-embed.pc new file mode 100644 index 0000000..9399f83 --- /dev/null +++ b/.github/assets/python3-embed.pc @@ -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} \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5be6c0b..26665a3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -77,20 +77,7 @@ jobs: if: matrix.sys.os == 'windows-latest' run: | mkdir -p $PKG_CONFIG_PATH - cat > $PKG_CONFIG_PATH/python3-embed.pc <