Skip to content
Discussion options

You must be logged in to vote

I really wish py.executable was a think like py.extension_module is today which automatically passes in the following for me:

  • the python include folder(s)

  • the python lib folder(s) for the link step

This is spelled like this:

py = import('python').find_installation()
executable(
    'foo',
    ...,
    dependencies: py.dependency(embed: true),
)
# Install the two executables, the C extension, and the contents of the data folder in src into py2exestub/data/
py.install_sources(
    [embed, stub, _memimport] + files('src/py2exestub/data'),
    subdir: 'py2exestub/data'
)

I doubt this works. To install the executables in the right path you should set the install_dir parameter to som…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dnicolodi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #826 on December 28, 2025 15:23.