Eli Schwartz
22dcb692ad
python module: implicitly add python dep to extensions
...
If there isn't a preexisting dependency on python, append one. It's
almost assuredly needed, so just do the right thing out of the box.
2022-06-19 21:44:17 +03:00
Eli Schwartz
aa874ea0d0
python module: default extensions to hidden symbol visibility
...
python compiled extensions should never need to expose any symbol other
than PyInit_* which is declared with default visibility via
PyMODINIT_FUNC on supported compilers.
Thus, a reasonably sane default is to mark any other symbols as hidden,
while still respecting any manually specified visibility.
Gate this on the version of python itself, as not all versions decorate
PyMODINIT_FUNC properly.
2022-05-09 10:49:04 -04:00
Xavier Claessens
329d111709
python: Add platlibdir and purelibdir options
2021-10-08 17:47:35 -04:00
Daniel Mensinger
2327cb5eb3
docs: Fix broken links
2021-10-03 12:19:45 +02:00
Xavier Claessens
276063a1d2
Add missing "disabler" kwarg to python.dependency()
...
There is a unit test using it and now fails because the warning about
unknown kwarg became fatal.
2021-08-30 14:00:54 -04:00
Xavier Claessens
8c5aa031b5
Add install tags
...
Fixes : #7007 .
2021-08-17 15:19:18 -04:00
Jussi Pakkanen
474f4813c4
Capitalize "Meson" consistently as it is a proper name. [skip ci]
2021-01-31 19:49:20 +00:00
Jussi Pakkanen
f72ee8e742
Rewrap long text lines in docs. [skip ci]
2021-01-30 16:19:59 +00:00
Nirbheek Chauhan
40b58be100
modules/python: Do not error out if positional args are passed
...
Also update the documentation.
Fixes https://github.com/mesonbuild/meson/issues/6470
2020-02-17 00:38:57 +02:00
Daniel Mensinger
c4649704c8
python: add embed to the python dependency function
2019-12-18 01:19:16 +02:00
Dylan Baker
15ab1f64f9
modules/python: add a modules keyword argument
...
This mirrors the modules keyword argument that some dependencies (such
as qt and llvm) take. This allows an easier method to determine if
modules are installed.
2019-06-12 14:13:20 +03:00
Dylan Baker
bd6bae0c71
docs: document that the .path() method for Python is new in 0.50 [skip ci]
...
Since this method was not included in 0.46-00.49 we should document that.
2019-03-09 19:01:57 +02:00
Alex Băluț
8f24d34e31
Fix links to reference manual
2019-01-09 09:11:58 -08:00
Luca Weiss
42cdb32033
Update Python-module.md
...
Fix link to the disabler object
2018-11-04 13:56:28 -05:00
Xavier Claessens
61348da069
Add 'disabler' argument to functions returning not-found objects
...
When dependency(), find_library(), find_program(), or
python.find_installation() return a not-found object and disabler is
true, they return a Disabler object instead.
2018-10-23 22:09:55 +03:00
Xavier Claessens
3cf03ec6d6
find_installation: Add support for feature option in required kwarg
...
Closes : #4165 .
2018-09-16 15:07:43 +03:00
Mathieu Duponchelle
709e2bd70d
Python module: update documentation for new API
2018-04-22 01:06:36 +02:00
Mathieu Duponchelle
56fc22075c
[fixup]: write documentation
2018-04-09 15:46:06 +02:00