Daniel Mensinger
4253bf6281
typing: Fix code review
4 years ago
Daniel Mensinger
1743f636fd
typing: fix LGTM bot error
4 years ago
Daniel Mensinger
e681235e5f
typing: fix code review
4 years ago
Daniel Mensinger
47373a2438
typing: get rid of most T.cast
4 years ago
Daniel Mensinger
23818fc5a3
typing: more fixes
4 years ago
Daniel Mensinger
1b19822a2d
typing: Fix templates
4 years ago
Daniel Mensinger
62f7642a61
typing: fix dependencies for new follow_imports
4 years ago
Daniel Mensinger
b57a355426
typing: use follow_imports = silent
4 years ago
Daniel Mensinger
5deb33b03c
typing: update run_mypy and mypy.ini
4 years ago
Daniel Mensinger
ca1878ffb5
typing: fix envconfig typing
4 years ago
Daniel Mensinger
3ae13d1dc2
typing: ignore error because of untyped decorator
4 years ago
Daniel Mensinger
0490372449
typing: fully annotate mintro and mtest
4 years ago
Daniel Mensinger
c637b913c9
typing: fully annotate mcompile, minit, and msetup
4 years ago
Daniel Mensinger
6b1b995b32
typing: fully annotate fs module
4 years ago
Daniel Mensinger
3dbfe8f75a
typing: fully annotate arglist
4 years ago
Daniel Mensinger
1217cf9a3b
typing: fully annotate boost and hdf5 deps
4 years ago
Daniel Mensinger
a4f4379c44
typing: fully annotate scripts
4 years ago
Daniel Mensinger
0d57e307b2
typing: fully annotate tools
4 years ago
Daniel Mensinger
449dd8e72a
typing: fully annotate wrap
4 years ago
Daniel Mensinger
fb9738b8c7
typing: fully annotate mparser.py
4 years ago
Daniel Mensinger
bb09ca9ad5
typing: fully annotate mesonlib.py
4 years ago
Daniel Mensinger
ce042f318e
typing: Add run_mypy.py for easier mypy invocation
4 years ago
Daniel Mensinger
ff28f3fa34
typing: completely type interpreterbase
4 years ago
Daniel Mensinger
3489442848
typing: completely type ast
4 years ago
Daniel Mensinger
9c1e72202d
typing: refactor dict handling
4 years ago
Paolo Bonzini
4ed5c3acbf
IntrospectInterpreter: allow dictionaries with nonconstant keys
...
Something like {a: foo} currently stymies the IntrospectionInterpreter and
breaks introspection of the source directory. The fix is just to walk the keys
and return a dummy dictionary.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
4 years ago
Jon Turney
f94e1eed97
Factor out an _add_languages() function in introspector
...
Factor out an _add_languages() function in introspector, rather than
calling func_add_languages() with arguments crafted to fake an
interpreter call.
4 years ago
Nirbheek Chauhan
eca4c6fcaf
minstall: Print a big FAILED when a script fails
...
We don't run any further scripts when this happens, so we need to
print a big error. The exit code was already correct.
Fixes https://github.com/mesonbuild/meson/issues/7627
4 years ago
Nirbheek Chauhan
863492ae1a
Add some type hints to the ExternalProgram class
4 years ago
Nirbheek Chauhan
757b838d81
Fix picking up tools with args from the env on Windows
...
This was a regression in https://github.com/mesonbuild/meson/pull/7059 .
We do not need to do a full search for all windows special cases. We
only want to check whether the command provided is actually a full
path to a script so we can add the interpreter.
Fixes https://github.com/mesonbuild/meson/issues/7645
4 years ago
Daiki Ueno
7ad66e8a1a
docs/Users: add p11-kit [skip ci]
...
Signed-off-by: Daiki Ueno <ueno@gnu.org>
4 years ago
James Hilliard
646ae846be
backends: check external rpaths for all languages using ldflags
...
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
4 years ago
Jussi Pakkanen
97177bc12a
Merge pull request #7689 from scivision/fortran_inc
...
correct Fortran include algorithm
4 years ago
Michael Hirsch
011210ee14
ci: update to use latest recommendations
4 years ago
Michal Sojka
28f15390b9
doc: Add missing method arguments [skip ci]
...
Documentation of most methods mentions method arguments enclosed in
parentheses. Two methods are an exception and we fix them here to make
the manual more consistent.
4 years ago
Krzysztof Małysa
49b3182748
docs: Fix typo in Reference-manual.md [skip ci]
4 years ago
Paolo Bonzini
492afe50a4
environment: use ExternalProgram to find ninja
...
This allows the NINJA environment variable to support all the Windows special
cases, especially allowing an absolute path without extension.
Based on a patch by Yonggang Luo.
Fixes : #7659
Suggested-by: Nirbheek Chauhan <nirbheek@centricular.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
4 years ago
Paolo Bonzini
fa5c2363eb
introspect: add test dependencies info to test/benchmark JSON
...
Add the ids of any target that needs to be rebuilt before running the
tests as computed by the backend, to the introspection data for tests and benchmarks.
This also includes anything that appears on the test's command line.
Without this information, IDEs must update the entire build before running
any test. They can now instead selectively build the test executable
itself and anything that is needed to run it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
4 years ago
Michael Hirsch
d01fc3da8f
tests: add fortran cmake subproject include test
...
ci:unused_arg: update ninja version to work with fortran+cmake
4 years ago
Michael Hirsch
34f7fee741
fortran: make include scanning also work for CMake subprojects
...
also fixed PEP8
I originally implemented the "include" scanning,
but hadn't made a test for this case
4 years ago
Daniel Mensinger
0b0873c743
cuda: bump CUDA version since 3.0 is no longer supported
4 years ago
Nirbheek Chauhan
104b80a75c
symbolextractor: Handle PermissionError when running tool
...
I can't reproduce this, but it is definitely possible. In this case
what we should do is the same as when the tool is not found.
Fixes https://github.com/mesonbuild/meson/issues/7605
4 years ago
Nirbheek Chauhan
0448884695
cmake: Don't link DEBUG to CRT when not building with MSVC
...
is_debug doesn't just control the CRT, it also controls the 'debug
configuration' which is unrelated to the CRT setting on non-MSVC.
Fixes https://github.com/mesonbuild/meson/issues/7631
4 years ago
Xavier Claessens
70d2207212
interpreterbase: Fix typing annotation
...
Co-authored-by: Daniel Mensinger <daniel@mensinger-ka.de>
4 years ago
Xavier Claessens
9365486104
Special case meson.version().version_compare() statement
...
when that statement gets evaluated, the interpreter remembers the
version target and if it was part of the evaluation of a `if` condition
then the target meson version is temporally overriden within that
if-block.
Fixes : #7590
4 years ago
Nirbheek Chauhan
bfb8d25deb
docs: Add a snippet for python 3.5 deprecation [skip ci]
4 years ago
Matt Madison
56ebd5c740
Add test case for cuda compiler setting fix
...
Signed-off-by: Matt Madison <matt@madison.systems>
4 years ago
Matt Madison
3eab43136c
environment: do not raise exception in detect_cuda_compiler
...
when the compiler is not a string. When the compiler
is set in the build configuration (required, for example,
in a cross-build setup), the compiler setting is already
a list, which is the desired type.
Signed-off-by: Matt Madison <matt@madison.systems>
4 years ago
Nirbheek Chauhan
4ad4565ddd
Add a notice about Python 3.5 support
...
This will be printed in bold at the end of interactive meson
sub-commands that won't be parsed by a program. Specifically: setup,
compile, test, and install.
NOTICE: You are using [...]
4 years ago
Daniel Berrangé
0ec8bebae8
Add Entangle application to list of apps using Meson
...
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
4 years ago