Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Trouble compiling native code that depends on Python #18

Open
jbcpollak opened this issue Feb 9, 2024 · 0 comments
Open

Trouble compiling native code that depends on Python #18

jbcpollak opened this issue Feb 9, 2024 · 0 comments

Comments

@jbcpollak
Copy link

I've found that proto does include the native libraries necessary to build python native code, but it doesn't expose them. There are two problems I've identified so far:

  1. the python-config binary is not exposed in bin or shims. I am working around that like this:
ln -s ~/.proto/tools/python/3.10.12/install/bin/python3-config ~/.proto/bin/python-config

For build systems that us the pkg-config tool, the prefixes in the .pc files located in .proto/tools/python/3.10.12/install are wrong. They are just prefix=/install when they should be a correct absolute path.

I am working around that with this hack:

sed -i 's|prefix=/install|prefix=/home/.../.proto/tools/python/3.10.12/install|' ~/.proto/tools/python/3.10.12/install/lib/pkgconfig/python3.pc
sed -i 's|prefix=/install|prefix=/home/.../.proto/tools/python/3.10.12/install|' ~/.proto/tools/python/3.10.12/install/lib/pkgconfig/python3-embed.pc
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant