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"} 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']