Skip to content

Cannot use python script in custom target #13907

Answered by eli-schwartz
vpoinot asked this question in Q&A
Discussion options

You must be logged in to vote

i.e. it does not try to use the interpreter python3 which is present in the shebang of the sqlite2cpp.py script in this form (which, from what I understand, is understood by meson):

#!/usr/bin/env python3

Note that the sqlite2cpp.py script has its executable bit unset (as the "permission denied" error proves it), which should trigger the execution of the script through the interpreter.

(I am on Linux/Fedora, using meson 1.4.1, also tried meson 1.6.0, same)

Am I doing something wrong? or is there a bug somewhere?

Meson understands interpreter shebangs for scripts without the executable bit set, when going through find_program. More specifically, it's at the point where find_program finds

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vpoinot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants