Lines Matching +full:packages +full:- +full:dir
4 Copyright (C) 2011-2014 Vinay Sajip.
27 By default, the builder makes the system (global) site-packages dir
30 If invoked using the Python -m option, the default is to use copying
34 :param system_site_packages: If True, the system (global) site-packages
35 dir is available to created environments.
56 if prompt == '.': # see bpo-38901
132 if not executable: # see gh-96861
148 # Issue 21197: create lib64 as a symlink to lib on 64-bit non-OS X POSIX
159 # environment, in case it isn't simply the executable script (e.g. bpo-45337)
162 # bpo-45337: Fix up env_exec_cmd to account for file system redirections.
177 was copied from, and whether the system site-packages should be made
184 with open(path, 'w', encoding='utf-8') as f:
190 f.write('include-system-site-packages = %s\n' % incl)
198 args.append('--symlinks')
200 args.append('--copies')
202 args.append('--without-pip')
204 args.append('--system-site-packages')
206 args.append('--clear')
208 args.append('--upgrade')
210 args.append('--upgrade-deps')
212 args.append(f'--prompt="{self.orig_prompt}"')
216 f.write(f'command = {sys.executable} -m venv {args}\n')
266 basename = basename[:-2]
343 """Executes the newly created Python using safe-ish options"""
344 # gh-98251: We do not want to just use '-I' because that masks
359 self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
360 '--default-pip', stderr=subprocess.STDOUT)
379 Hook for post-setup modification of the venv. Subclasses may install
380 additional packages or scripts here, add activation shell scripts, etc.
389 Replace variable placeholders in script text with context-specific
410 …[1]: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quo…
411 …//learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parsing#passin…
419 # gh-124651: need to quote the template strings properly
445 Placeholder variables are replaced with environment-
451 if root == path: # at top-level, remove irrelevant dirs
474 data = data.decode('utf-8')
476 data = data.encode('utf-8')
488 f'Upgrading {CORE_VENV_DEPS} packages in {context.bin_path}'
490 self._call_new_python(context, '-m', 'pip', 'install', '--upgrade',
525 parser.add_argument('--system-site-packages', default=False,
528 'system site-packages dir.')
534 group.add_argument('--symlinks', default=use_symlinks,
539 group.add_argument('--copies', default=not use_symlinks,
544 parser.add_argument('--clear', default=False, action='store_true',
549 parser.add_argument('--upgrade', default=False, action='store_true',
553 'has been upgraded in-place.')
554 parser.add_argument('--without-pip', dest='with_pip',
559 parser.add_argument('--prompt',
562 parser.add_argument('--upgrade-deps', default=False, action='store_true',
569 raise ValueError('you cannot supply --upgrade and --clear together.')