Skip to content

Commit

Permalink
Add pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
slundberg committed Dec 6, 2023
1 parent 0c5112a commit fb9d70c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"pybind11>=2.10.0",
]
build-backend = "setuptools.build_meta"
17 changes: 3 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))

Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit fb9d70c

Please sign in to comment.