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

Trouble compiling native code that depends on Python #18

@jbcpollak

Description

@jbcpollak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions