File: env.py

package info (click to toggle)
nextpnr 0.0~git20210102.9b96280-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,268 kB
  • sloc: cpp: 158,711; python: 16,582; ansic: 9,715; sh: 573; makefile: 477; objc: 42; tcl: 21
file content (14 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- coding: utf-8 -*-
import platform
import sys

LINUX = sys.platform.startswith("linux")
MACOS = sys.platform.startswith("darwin")
WIN = sys.platform.startswith("win32") or sys.platform.startswith("cygwin")

CPYTHON = platform.python_implementation() == "CPython"
PYPY = platform.python_implementation() == "PyPy"

PY2 = sys.version_info.major == 2

PY = sys.version_info