From fb9d70c706c6ba3467e1a994ab3e0ab75e5f1d08 Mon Sep 17 00:00:00 2001 From: Scott Lundberg Date: Wed, 6 Dec 2023 00:44:43 +0000 Subject: [PATCH] Add pyproject.toml --- pyproject.toml | 6 ++++++ setup.py | 17 +++-------------- 2 files changed, 9 insertions(+), 14 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..c8a11bfc1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "pybind11>=2.10.0", +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.py b/setup.py index 002efbc27..e82d13d5e 100644 --- a/setup.py +++ b/setup.py @@ -2,15 +2,7 @@ import re import codecs from setuptools import setup, find_packages -try: - from pybind11.setup_helpers import Pybind11Extension, build_ext - import pybind11 - print("AAAAA:", pybind11.get_include()) - print("AAAAA:", pybind11.get_include(True)) -except ImportError: - print("BBBB") - from setuptools import Extension as Pybind11Extension - from setuptools.command.build_ext import build_ext +from pybind11.setup_helpers import Pybind11Extension, build_ext here = os.path.abspath(os.path.dirname(__file__)) @@ -50,18 +42,15 @@ def find_version(*file_paths): "numpy", "aiohttp", "ordered_set", - "pyformlang", - "pybind11" + "pyformlang" ], - setup_requires=["pybind11"], extras_require={ 'docs': [ 'ipython', 'numpydoc', 'sphinx_rtd_theme', 'sphinx', - 'nbsphinx', - "pybind11" + 'nbsphinx' ], 'test': [ 'pytest',