Lines Matching defs:sys

4 import sys
22 original_argv = sys.argv[1:]
26 CC = os.environ.get('CC', 'cc' if sys.platform == 'darwin' else 'gcc')
27 CXX = os.environ.get('CXX', 'c++' if sys.platform == 'darwin' else 'g++')
31 sys.path.insert(0, str(tools_path / 'gyp' / 'pylib'))
35 sys.path.insert(0, str(tools_path / 'configure.d'))
39 sys.path.insert(0, 'tools')
882 sys.exit(1)
954 if sys.platform == 'zos':
1045 if sys.platform == 'win32':
1080 if sys.platform == 'darwin':
1140 if sys.platform.startswith('zos'):
1280 o['variables']['node_byteorder'] = sys.byteorder
1326 elif sys.platform == 'zos':
1450 elif sys.platform == 'darwin':
1452 elif sys.platform.startswith('aix'):
1454 elif sys.platform == 'os400':
1456 elif sys.platform.startswith('zos'):
1895 icu_endianness = sys.byteorder[0]
1948 # print("platform %s, flavor %s" % (sys.platform, flavor))
1949 # if sys.platform == 'darwin':
1951 # elif sys.platform.startswith('aix'):
1964 elif sys.platform == 'os400':
1967 elif sys.platform.startswith('aix'):
1970 elif sys.platform == 'zos':
2015 if sys.platform == 'win32':
2019 # sys.executable. This directory will be prefixed to the PATH, so that
2024 os.path.realpath(which_python) == os.path.realpath(sys.executable)):
2040 os.symlink(sys.executable, python_link)
2133 if sys.executable != 'python' and ':\\' not in sys.executable:
2134 config['PYTHON'] = sys.executable
2143 if sys.platform == 'win32':
2152 bin_override = None if sys.platform == 'win32' else make_bin_override()
2165 elif flavor == 'win' and sys.platform != 'msys':
2177 gyp_args += ['-Dpython=' + sys.executable]