@@ -255,17 +255,11 @@ def build_extension(self, ext):
255255
256256 # Up to Python 3.2 sys.maxunicode is used to determine the size of
257257 # Py_UNICODE, but from 3.3 onwards Py_UNICODE is a typedef of wchar_t.
258- # TODO: Is this doing the right check for Py27?
259- if sys .version_info [:2 ] <= (3 , 2 ):
260- unicode_width = 2 if sys .maxunicode < 0x10FFFF else 4
261- else :
262- import ctypes
263-
264- unicode_width = ctypes .sizeof (ctypes .c_wchar )
258+ import ctypes
259+ unicode_width = ctypes .sizeof (ctypes .c_wchar )
265260
266261 defines = [
267262 "PYTHON{0}{1}" .format (PY_MAJOR , PY_MINOR ),
268- "PYTHON{0}" .format (PY_MAJOR ), # Python Major Version
269263 "UCS{0}" .format (unicode_width ),
270264 ]
271265
@@ -274,7 +268,6 @@ def build_extension(self, ext):
274268
275269 if sys .platform != "win32" and (DEVTOOLS == "Mono" or DEVTOOLS == "dotnet" ):
276270 on_darwin = sys .platform == "darwin"
277- defines .append ("MONO_OSX" if on_darwin else "MONO_LINUX" )
278271
279272 # Check if --enable-shared was set when Python was built
280273 enable_shared = sysconfig .get_config_var ("Py_ENABLE_SHARED" )
@@ -645,8 +638,6 @@ def run(self):
645638 "Intended Audience :: Developers" ,
646639 "License :: OSI Approved :: MIT License" ,
647640 "Programming Language :: C#" ,
648- "Programming Language :: Python :: 2" ,
649- "Programming Language :: Python :: 2.7" ,
650641 "Programming Language :: Python :: 3" ,
651642 "Programming Language :: Python :: 3.5" ,
652643 "Programming Language :: Python :: 3.6" ,
0 commit comments