From 8cb977f22f008a4262c38ee7ec2ef23002bebbc1 Mon Sep 17 00:00:00 2001 From: Bjarne Date: Tue, 20 Sep 2022 10:48:44 +0200 Subject: [PATCH 1/2] Re-introducing fix from e9fe3dc --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c0605e0..2111d7d 100644 --- a/setup.py +++ b/setup.py @@ -97,8 +97,7 @@ def ext_modules(): if java_home is None: raise Exception("JVM not found") jdk_home = find_jdk() - from numpy import get_include - include_dirs = [get_include()] + get_jvm_include_dirs() + include_dirs = get_jvm_include_dirs() libraries = None library_dirs = None javabridge_sources = ['_javabridge.c'] From 361f5e50a1e2abe87d534d992831fce6990ae8cb Mon Sep 17 00:00:00 2001 From: Bjarne Date: Tue, 20 Sep 2022 14:20:01 +0200 Subject: [PATCH 2/2] Trivial PEP 621 setup --- pyproject.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..111fe5c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,19 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + + +[project] +name="python-javabridge" +version="4.0.3" +readme = "README.rst" +requires-python = ">=3.8" +description="Python wrapper for the Java Native Interface" +classifiers=['Development Status :: 5 - Production/Stable', + 'License :: OSI Approved :: BSD License', + 'Programming Language :: Java', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 3' + ] +dependencies = ['Cython>=0.29.16', 'numpy>=1.20.1' ] +license={text = "BSD 3-Clause License"}