Commit Graph

23 Commits

Author SHA1 Message Date
Eli Schwartz aa84c55bef
tests: fix edge case where non-default python is used, by skipping it
In a couple of python module tests, we try to test things that rely on
the default python being the same one we look up in the python module.
This is unsolvable for the deprecated python3 module, as it actually
uses the in-process version of python for everything. For the python
module, we could actually look up the default system python instead of
the one we are running with, but then we wouldn't be testing the
functionality of that alternative python... and also the install
manifest tests would see files installed for the wrong version of
python, and report a combination of missing+extra files...

Solve both tests by just skipping the parts we cannot check.
2022-11-14 19:16:57 -05:00
Jussi Pakkanen 54808cd39b Fix purelib and platlib validation in Python3 module. 2022-04-20 16:13:58 -04:00
Filipe Laíns 59b8e00249 tests: take into account Debian Python paths
Signed-off-by: Filipe Laíns <lains@riseup.net>
2021-09-29 08:54:05 -04:00
Eli Schwartz 6a0fabc647
mass rewrite of string formatting to use f-strings everywhere
performed by running "pyupgrade --py36-plus" and committing the results
2021-03-04 17:16:11 -05:00
Gerion Entrup 1c74bbbfb3 test cases/python3/3 cython: fix dependency files
The Cython generation depends on cstorer.pxd as well, so add that as
dependency.
2020-02-10 23:12:20 +02:00
Jussi Pakkanen ad1cfbe7ec Disable extension module tests with Python 3.8 and VS2015. 2019-10-20 13:30:17 +03:00
Jon Turney dadf6e2233
Tests for version constraints on custom lookup dependencies 2018-08-26 17:23:39 +01:00
Nirbheek Chauhan 7586a4ac09 tests/python/4: Test that custom target depends add PATH 2017-12-02 02:07:19 +05:30
Anonymous Maarten b715276cc7 tests: test getting python module using pkg-config 2017-11-13 23:07:48 +01:00
Guillaume Poirier-Morency 987e5b743c python3: Fix tests on Windows as it uses 'Lib' and 'Include' 2017-08-18 00:09:17 -04:00
Guillaume Poirier-Morency 2653000ac7 python3: Add tests for platform-dependant paths and cover include path 2017-08-17 09:42:33 -04:00
Patrick Griffis 86644bbdfc python3: Add tests for sysconfig_path() and language_version() 2017-03-30 09:16:26 -04:00
Jussi Pakkanen 6ac9a8e738 Add .find_python() method. Supersedes #777. 2017-01-09 21:23:18 +02:00
Jussi Pakkanen 24221d71cc Created a Python 3 module for simpler building of Python extension modules. 2017-01-09 21:07:23 +02:00
Nirbheek Chauhan 2c5680d721 python3 dep: Check arch of libraries before using
On Windows, we can build with both 32-bit and 64-bit compilers, but the
Python is either 32-bit or 64-bit. Check the architecture of the found
Python libraries and don't use them if they don't match our
build_machine.

Also skip the tests if the Python 3 dependency is not found.
2016-12-10 00:58:50 +02:00
Jussi Pakkanen 5603f90287 Allow tests to mark themselves as skipped during runtime. 2016-11-09 15:00:28 -05:00
Jussi Pakkanen efceac497f Python extension module finally works on Windows. 2016-02-26 21:04:11 +02:00
Jussi Pakkanen 40d70e1b15 Skip cython test if it does not exist. 2016-02-21 17:14:10 +02:00
Jussi Pakkanen a04c33e125 Can build Python extension on OSX. 2016-02-21 17:12:09 +02:00
Jussi Pakkanen 16b9a52235 Fix cython to work on platforms other than latest Ubuntu. 2016-02-21 14:52:36 +02:00
Jussi Pakkanen 738f7f860c Added Cython sample project. 2016-02-21 14:52:36 +02:00
Jussi Pakkanen 98d00386b1 Can build a Python extension module. 2016-02-21 14:52:36 +02:00
Jussi Pakkanen a8120eb519 Added plain Python sample project. 2016-02-21 14:52:36 +02:00