Henry Schreiner | 4d9024e | 2020-08-16 16:02:12 -0400 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | import platform |
| 3 | import sys |
| 4 | |
| 5 | LINUX = sys.platform.startswith("linux") |
| 6 | MACOS = sys.platform.startswith("darwin") |
| 7 | WIN = sys.platform.startswith("win32") or sys.platform.startswith("cygwin") |
| 8 | |
| 9 | CPYTHON = platform.python_implementation() == "CPython" |
| 10 | PYPY = platform.python_implementation() == "PyPy" |
| 11 | |
| 12 | PY2 = sys.version_info.major == 2 |
Henry Schreiner | 110e6c1 | 2020-08-20 11:58:34 -0400 | [diff] [blame^] | 13 | |
| 14 | PY = sys.version_info |