From e2dd1f69f65627e62edf655c603e339f676ea999 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 27 Sep 2018 04:41:48 -0400 Subject: [PATCH] BLD: Add pyproject.toml defining build requirements. Fixes #1112. See also #1035. --- MANIFEST.in | 1 + pyproject.toml | 2 ++ setup.py | 7 ------- 3 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 pyproject.toml diff --git a/MANIFEST.in b/MANIFEST.in index 68a876ff2..ff607c1a2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,6 +3,7 @@ include CHANGES include COPYING* include INSTALL include README.rst +include pyproject.toml include requirements/*.txt include lib/cartopy/data/* include lib/cartopy/io/srtm.npz diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..59314b980 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[build-system] +requires = ["setuptools", "wheel", "numpy>=1.10", "Cython>=0.15.1"] diff --git a/setup.py b/setup.py index b0409ac6f..785203f91 100644 --- a/setup.py +++ b/setup.py @@ -36,13 +36,6 @@ import versioneer -# Ensure build-time dependencies are available. -# See https://stackoverflow.com/a/12061891 -setuptools.dist.Distribution( - dict( - setup_requires=['Cython>=0.15.1', 'numpy>=1.10'])) - - try: from Cython.Distutils import build_ext except ImportError: