  from distutils.sysconfig import get_python_inc
  import distutils.util
  from distutils import ccompiler, msvccompiler
  from setuptools import Extension, setup, find_packages
  
  
  # Preserve `__doc__` on functions and classes
  # http://docs.cython.org/en/latest/src/userguide/source_files_and_compilation.html#compiler-options
  Options.docstrings = True
  
 
</s> remove def is_new_osx():
    """Check whether we're on OSX >= 10.10"""
    name = distutils.util.get_platform()
    if sys.platform != "darwin":
        return False
    elif name.startswith("macosx-10"):
        minor_version = int(name.split("-")[1].split(".")[1])
        if minor_version >= 7:
            return True
        else:
            return False
    else:
        return False
 </s> add # Preserve `__doc__` on functions and classes
# http://docs.cython.org/en/latest/src/userguide/source_files_and_compilation.html#compiler-options
Options.docstrings = True </s> remove import contextlib
 </s> add  </s> remove import io
import os
import subprocess
 </s> add  </s> remove LINK_OPTIONS = {"msvc": [], "mingw32": [], "other": []}
 </s> add def is_new_osx():
    """Check whether we're on OSX >= 10.10"""
    name = distutils.util.get_platform()
    if sys.platform != "darwin":
        return False
    elif name.startswith("macosx-10"):
        minor_version = int(name.split("-")[1].split(".")[1])
        if minor_version >= 7:
            return True
        else:
            return False
    else:
        return False
import numpy
from pathlib import Path
from Cython.Build import cythonize
from Cython.Compiler import Options
  from distutils.sysconfig import get_python_inc
  import distutils.util
  from distutils import ccompiler, msvccompiler
  from setuptools import Extension, setup, find_packages
import numpy
from pathlib import Path
from Cython.Build import cythonize
from Cython.Compiler import Options
  
  
  # Preserve `__doc__` on functions and classes
  # http://docs.cython.org/en/latest/src/userguide/source_files_and_compilation.html#compiler-options
  Options.docstrings = True
  
keep keep keep add keep keep keep keep keep keep
 Improve setup.py and call into Cython directly (#4952)

* Improve setup.py and call into Cython directly

* Add numpy to setup_requires

* Improve clean helper

* Update setup.cfg

* Try if it builds without pyproject.toml

* Update MANIFEST.in 
setup.py