Skip to content

Commit 55d19c1

Browse files
authored
Merge pull request #1208 from ocefpaf/pep_517_518
add pyproject.toml to ensure build deps are present at build time
2 parents 8f7a365 + b823dc7 commit 55d19c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=41.2", "cython>=0.19", "oldest-supported-numpy"]
3+
build-backend = "setuptools.build_meta"

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import shutil
44
import configparser
55
from setuptools import setup, Extension, find_namespace_packages
6-
from distutils.dist import Distribution
6+
from setuptools.dist import Distribution
77

88
setuptools_extra_kwargs = {
99
"install_requires": ["numpy>=1.9","cftime"],
10-
"setup_requires": ['setuptools>=18.0', "cython>=0.19"],
1110
"entry_points": {
1211
'console_scripts': [
1312
'ncinfo = netCDF4.utils:ncinfo',

0 commit comments

Comments
 (0)