diff options
author | mattip <matti.picus@gmail.com> | 2023-02-22 17:57:51 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2023-02-22 20:37:03 +0200 |
commit | da6eeb81d26d2c9e4d3870828add330cd5e602a4 (patch) | |
tree | b1536fee713aa998fbc7bd42ae13e3a1dc4033a9 | |
parent | c217f93da2cd0d119abb575371e4a70927f2015c (diff) | |
download | numpy-da6eeb81d26d2c9e4d3870828add330cd5e602a4.tar.gz |
TST: xfail api entry point test when building with meson
-rw-r--r-- | numpy/tests/test_public_api.py | 4 | ||||
-rw-r--r-- | pyproject.toml | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py index 15a847393..a7bec6313 100644 --- a/numpy/tests/test_public_api.py +++ b/numpy/tests/test_public_api.py @@ -471,6 +471,10 @@ def test_api_importable(): @pytest.mark.xfail( + hasattr(np.__config__, "_built_with_meson"), + reason = "Meson does not yet support entry points via pyproject.toml", +) +@pytest.mark.xfail( sysconfig.get_config_var("Py_DEBUG") is not None, reason=( "NumPy possibly built with `USE_DEBUG=True ./tools/travis-test.sh`, " diff --git a/pyproject.toml b/pyproject.toml index 4817aa101..1e443c507 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,6 +63,8 @@ requires = [ #'f2py3 = numpy.f2py.f2py2e:main' #'f2py3.MINOR_VERSION = numpy.f2py.f2py2e:main' # +# When enabling this stanza, make sure to remove the meson-specific xfail from +# numpy/tests/test_public_api.py #[project.entry-points] #'array_api': 'numpy = numpy.array_api' #'pyinstaller40': 'hook-dirs = numpy:_pyinstaller_hooks_dir' |