Skip to content

Commit

Permalink
meson: Remove the python option
Browse files Browse the repository at this point in the history
We can instead rely solely on Meson's Python module, as Meson supports
specifying the `python` binary to use.
  • Loading branch information
oleavr committed Mar 20, 2024
1 parent 7df1566 commit bd3e280
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ if cc.has_header('android/api-level.h')
host_os = 'android'
endif

python = get_option('python')
if python == ''
python = import('python').find_installation()
endif
python = import('python').find_installation()

python_incdir = get_option('python_incdir')
if python_incdir == ''
Expand Down
6 changes: 0 additions & 6 deletions meson.options
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
option('python',
type: 'string',
value: '',
description: 'Python interpreter to build for'
)

option('python_incdir',
type: 'string',
value: '',
Expand Down

0 comments on commit bd3e280

Please sign in to comment.