Skip to content

Commit

Permalink
Add PEP 517 build specification (#3495)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming authored Nov 14, 2021
1 parent 9710dd8 commit 0f6477a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 28 deletions.
11 changes: 0 additions & 11 deletions cmake/PythonNumpyPybind11.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ message(" version: ${PYTHON_VERSION}")
message(" include: ${PYTHON_INCLUDE_DIRS}")
message(" library: ${PYTHON_LIBRARIES}")

execute_process(COMMAND ${PYTHON_EXECUTABLE} -c
"import git; from git import Repo; import sys;\
sys.stdout.write(git.__version__)"
OUTPUT_VARIABLE GITPYTHON_VERSION
RESULT_VARIABLE GITPYTHON_IMPORT_RET)
if (NOT GITPYTHON_IMPORT_RET)
message(" gitpython version: ${GITPYTHON_VERSION}")
else ()
message(FATAL_ERROR "Cannot import git. Please install. ([sudo] pip3 install --user gitpython)")
endif ()

execute_process(COMMAND ${PYTHON_EXECUTABLE} -c
"import numpy.distutils, sys;\
sys.stdout.write(':'.join(numpy.distutils.misc_util.get_numpy_include_dirs()))"
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel", "numpy", "pybind11", "cmake"]
build-backend = "setuptools.build_meta"
15 changes: 0 additions & 15 deletions requirements.txt

This file was deleted.

3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[metadata]
description_file = README
long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ def run(self):
python_requires=">=3.6,<3.10",
install_requires=[
'numpy',
'pybind11>=2.5.0',
'sourceinspect>=0.0.4',
'colorama',
'astor',
Expand Down

0 comments on commit 0f6477a

Please sign in to comment.