summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/deprecated_python3_module.md
blob: 2c468300137083c79751614a6b441f6a06d03a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## python3 module is deprecated

A generic module `python` has been added in Meson `0.46.0` and has a superset of
the features implemented by the previous `python3` module.

In most cases, it is a simple matter of renaming:
```meson
py3mod = import('python3')
python = py3mod.find_python()
```

becomes

```meson
pymod = import('python')
python = pymod.find_installation()
```