Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

packing executables into wheels #712

Unanswered
fehrin1 asked this question in Q&A
Discussion options

Hi all, this is my first question here, i would like to include a binary executable in a wheel in a way that on install it is transferred to the Scipts directory (i use Windows lingo/logic here), which is in the PATH (of my virtual environment).
What i mean is a general executable, no console script or entry point.
Am i on the right trail on putting my executable my.exe into pack-0.0.1-py3-none-win_amd64.whl
as (in)
pack-0.0.1.data/scripts/my.exe
?
And if so, how do i achieve this (in a sense this is the main question)?
For the complete picture i want to compile a single Fortran source to an executable and with this executable proceed as above.
Thx in advance for any hints.

You must be logged in to vote

Replies: 2 comments

Comment options

Hello @fehrin1. You don't need to do anything special, meson-python takes care of everything for you: just compile the binary with the executable() meson function and mark it as installed by default. See the example here https://github.com/mesonbuild/meson-python/tree/main/tests/packages/executable

executable(
'example',
'example.c',
install: true,
)

You must be logged in to vote
0 replies
Comment options

Thx a lot, i will give it a try.

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.