66from setuptools import Extension , setup
77from distutils .command .build_ext import build_ext
88from distutils .sysconfig import get_python_inc
9- from distutils import ccompiler , msvccompiler
109from Cython .Build import cythonize
1110
1211
@@ -78,12 +77,6 @@ def setup_package():
7877
7978 include_dirs = [get_python_inc (plat_specific = True )]
8079
81- if (
82- ccompiler .new_compiler ().compiler_type == "msvc"
83- and msvccompiler .get_build_version () == 9
84- ):
85- include_dirs .append (os .path .join (root , "include" , "msvc9" ))
86-
8780 ext_modules = []
8881 for mod_name in MOD_NAMES :
8982 mod_path = mod_name .replace ("." , "/" ) + ".pyx"
@@ -107,7 +100,7 @@ def setup_package():
107100 url = about ["__uri__" ],
108101 license = about ["__license__" ],
109102 ext_modules = cythonize (ext_modules , language_level = 2 ),
110- setup_requires = [ "cython>=0.28" , "cymem>=2.0.2,<2.1.0" , "murmurhash>=0.28.0,<1.1.0" ] ,
103+ python_requires = ">=3.6" ,
111104 install_requires = ["cymem>=2.0.2,<2.1.0" , "murmurhash>=0.28.0,<1.1.0" ],
112105 classifiers = [
113106 "Environment :: Console" ,
@@ -118,8 +111,6 @@ def setup_package():
118111 "Operating System :: MacOS :: MacOS X" ,
119112 "Operating System :: Microsoft :: Windows" ,
120113 "Programming Language :: Cython" ,
121- "Programming Language :: Python :: 2.7" ,
122- "Programming Language :: Python :: 3.5" ,
123114 "Programming Language :: Python :: 3.6" ,
124115 "Programming Language :: Python :: 3.7" ,
125116 "Programming Language :: Python :: 3.8" ,
0 commit comments