mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-09 05:51:02 +00:00
Drop python2 support (#519)
The PR removes python2 references and cases. Close #518 Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This commit is contained in:
parent
45f848695c
commit
feec06206c
17 changed files with 58 additions and 143 deletions
3
setup.py
3
setup.py
|
|
@ -10,7 +10,6 @@ from setuptools.command.sdist import sdist
|
|||
|
||||
|
||||
PYPY = hasattr(sys, "pypy_version_info")
|
||||
PY2 = sys.version_info[0] == 2
|
||||
|
||||
|
||||
class NoCython(Exception):
|
||||
|
|
@ -79,7 +78,7 @@ if sys.platform == "win32":
|
|||
macros = [("__LITTLE_ENDIAN__", "1")]
|
||||
|
||||
ext_modules = []
|
||||
if not PYPY and not PY2 and not os.environ.get("MSGPACK_PUREPYTHON"):
|
||||
if not PYPY and not os.environ.get("MSGPACK_PUREPYTHON"):
|
||||
ext_modules.append(
|
||||
Extension(
|
||||
"msgpack._cmsgpack",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue