Eli Schwartz
eb69fed2f6
python module: allow specifying the pure kwarg in the installation object
...
Fixes #10523
2 years ago
Eli Schwartz
e7d87b6f58
implement the new preserve_path kwarg for install_data too
...
Primarily interesting to me because it is then available for the python
module's install_sources method.
Based on the new feature in install_headers.
2 years ago
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.
3 years ago
Eli Schwartz
041c372048
tests: make python2 dependency on 32-bit windows non-fatal
...
Apparently Azure provides 64-bit python2 when we try to test 32-bit, and
that breaks everything on the 32-bit test runner.
I don't understand the environment setup, and that runner is
disappearing soon anyway. Hopefully this shuts up the known breakage.
3 years ago
Eli Schwartz
fe2c0ff1e2
tests: don't skip python version tests if python is found but its dep is broken
...
If a version of python is installed for testing against, we should
assume it's actually important to test against it.
3 years ago
Eli Schwartz
4b0c0810df
unittests: convert python tests to project tests
...
Perhaps when this test case was originally created, project tests could
not use a matrix of options? This is certainly possible today, so don't
write special unittest handling for this instead.
This adds proper visibility into what gets run and what doesn't. Now we
know which python executables got tested and which got skipped.
3 years ago
Xavier Claessens
329d111709
python: Add platlibdir and purelibdir options
3 years ago
Filipe Laíns
59b8e00249
tests: take into account Debian Python paths
...
Signed-off-by: Filipe Laíns <lains@riseup.net>
3 years ago
Eli Schwartz
1f46b4ce64
tests: python module should install files correctly
...
- default to python site-packages
- subdir to site-packages/subdir
- arbitrary install_dir
3 years ago
Xavier Claessens
a2f110ff77
interpreter: Fix holder_map not being updated when subproject fails
...
Fixes : #9038
3 years ago
Jussi Pakkanen
3340d373fb
Revert "interpreter: Fix holder_map not being updated when subproject fails"
...
This reverts commit 566383c727
.
3 years ago
Xavier Claessens
566383c727
interpreter: Fix holder_map not being updated when subproject fails
...
Fixes : #9038
3 years ago
Eli Schwartz
6a0fabc647
mass rewrite of string formatting to use f-strings everywhere
...
performed by running "pyupgrade --py36-plus" and committing the results
4 years ago
Michael Hirsch
c9d8d4628e
simplify/correct test logic
...
before this, tests were being skipped on Ubuntu 20.04 with Anaconda Python
Now, all 5 tests success
4 years ago
Michael Hirsch
895de87b90
some python test cases don't care about backend, so run them in any case
4 years ago
Michael Hirsch
4f1a240bc2
raise SystemExit() generally preferred to sys.exit(1)
4 years ago
Michael Hirsch
173d1624cb
c lang not needed for this test
4 years ago
Michael Hirsch
ab72f52743
setuptools is not stdlib, but distutils is
4 years ago
Dylan Baker
29ef4478df
compilers/d: Add b_ndebug support
...
D lang compilers have an option -release (or similar) which turns off
asserts, contracts, and other runtime type checking. This patch wires
that up to the b_ndebug flag.
Fixes #7082
5 years ago
Jussi Pakkanen
ad1cfbe7ec
Disable extension module tests with Python 3.8 and VS2015.
5 years ago
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.
6 years ago
Dylan Baker
82346a2bd2
modules/python: Report program found in find_installation()
...
Currently find_installation is silent, which is pretty annoying. Let's
log it.
6 years ago
Dylan Baker
978e6fb88f
tests: Add tests for the python module
...
This doesn't touch everything as it's just based on the python3 module
tests, ported to the python module. It's still better than the one very
basic test in the unit test module.
6 years ago
Nirbheek Chauhan
575ffec62e
python module: Move tests to test cases/unit
...
The tests are only run via unit tests, so that's where they should be.
7 years ago
Mathieu Duponchelle
33abe0cf55
[fixup]: Rename find to find_installation
7 years ago
Mathieu Duponchelle
e1b138a21b
Implement a generic python module
...
With contributions from Håvard Graff
7 years ago