Lines Matching defs:sys
17 import sys
34 # Platforms that set sys._base_executable can create venvs from within
37 sys.prefix == sys.base_prefix
38 or sys._base_executable != sys.executable,
70 self.lib = ('lib', 'python%d.%d' % sys.version_info[:2])
72 executable = sys._base_executable
74 if (sys.platform == 'win32'
128 (sys.platform != 'darwin'))
134 executable = sys._base_executable
138 os.path.realpath(sys.executable), data)
140 cmd = f'command = {sys.executable} -m venv{copies} --without-pip {self.env_dir}'
210 bin_path = 'Scripts' if sys.platform == 'win32' else 'bin'
211 python_exe = os.path.split(sys.executable)[1]
216 if sys.platform == 'win32':
251 ('base_prefix', sys.base_prefix),
252 ('base_exec_prefix', sys.base_exec_prefix)):
253 cmd[2] = 'import sys; print(sys.%s)' % prefix
302 if sys.platform == 'win32':
314 ('lib', 'python%d.%d' % sys.version_info[:2]),
315 ('lib', 'python%d.%d' % sys.version_info[:2], 'site-packages'),
423 Test that the sys.executable value is as expected.
430 'import sys; print(sys.executable)'])
436 Test that the sys.executable value is as expected.
444 'import sys; print(sys.executable)'])
518 @unittest.skipUnless(sys.platform == 'darwin', 'only relevant on macOS')
550 platlibdir = sys.platlibdir
555 shutil.copy2(sys.executable, bindir)
559 stdlib_zip = "python%d%d.zip" % sys.version_info[:2]
566 for eachpath in sys.path:
599 ld_library_path = os.path.abspath(os.path.dirname(sys.executable))
600 if sys.platform == 'darwin':
610 cmd = [envpy, '-S', '-c', 'import sys; print(sys.path)']