Home
last modified time | relevance | path

Searched full:venv (Results 1 – 25 of 445) sorted by relevance

12345678910>>...18

/aosp_15_r20/external/python/pyee/
DMakefile4 python3 -m venv venv
5 if [ -d venv ]; then . ./venv/bin/activate; fi; pip install pip wheel --upgrade
6 if [ -d venv ]; then . ./venv/bin/activate; fi; pip install -r requirements.txt
7 if [ -d venv ]; then . ./venv/bin/activate; fi; pip install -r requirements_dev.txt
8 if [ -d venv ]; then . ./venv/bin/activate; fi; pip install -e .
12 if [ -d venv ]; then . ./venv/bin/activate; fi; python setup.py check
13 if [ -d venv ]; then . ./venv/bin/activate; fi; python setup.py sdist
14 if [ -d venv ]; then . ./venv/bin/activate; fi; python setup.py bdist_wheel --universal
17 if [ -d venv ]; then . ./venv/bin/activate; fi; twine upload dist/*
20 if [ -d venv ]; then . ./venv/bin/activate; fi; npm run pyright
[all …]
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_venv.py2 Test harness for the venv module.
26 import venv
35 # another venv, so no need to skip tests that require venv.create().
39 'cannot run venv.create from within a venv on this platform')
42 raise unittest.SkipTest("venv is not available on Emscripten/WASI.")
59 """Base class for venv tests."""
99 """Test venv module functionality."""
110 self.run_with_capture(venv.create, self.env_dir)
118 self.run_with_capture(venv.create, pathlib.Path(self.env_dir))
140 cmd = f'command = {sys.executable} -m venv{copies} --without-pip {self.env_dir}'
[all …]
Dtest_getpath.py76 """Test a venv layout on Windows.
84 ENV___PYVENV_LAUNCHER__=r"C:\venv\Scripts\python.exe",
88 ns.add_known_xfile(r"C:\venv\Scripts\python.exe")
91 ns.add_known_file(r"C:\venv\pyvenv.cfg", [
95 executable=r"C:\venv\Scripts\python.exe",
328 "Test a venv layout on *nix."
332 ENV_PATH="/venv/bin:/usr/bin",
335 ns.add_known_xfile("/venv/bin/python")
338 ns.add_known_file("/venv/pyvenv.cfg", [
342 executable="/venv/bin/python",
[all …]
/aosp_15_r20/external/python/setuptools/setuptools/tests/
Dtest_distutils_adoption.py35 def find_distutils(venv, imports='distutils', env=None, **kwargs): argument
38 return popen_text(venv.run)(cmd, env=win_sr(env), **kwargs)
41 def count_meta_path(venv, env=None): argument
49 return int(popen_text(venv.run)(cmd, env=win_sr(env)))
52 def test_distutils_stdlib(venv): argument
57 assert venv.name not in find_distutils(venv, env=env).split(os.sep)
58 assert count_meta_path(venv, env=env) == 0
61 def test_distutils_local_with_setuptools(venv): argument
66 loc = find_distutils(venv, imports='setuptools, distutils', env=env)
67 assert venv.name in loc.split(os.sep)
[all …]
Dtest_virtualenv.py17 def pytest_virtualenv_works(venv): argument
22 venv_prefix = venv.run(["python" , "-c", "import sys; print(sys.prefix)"]).strip()
73 # Install pip/wheel, in a venv without setuptools (as it
75 venv = venv_without_setuptools
76 venv.run(["pip", "install", "-U", "wheel"])
78 venv.run(["python", "-m", "pip", "install", "-U", pip_version, "--retries=1"])
81 venv.run(["python", "-c", "import setuptools"])
84 venv.run(["pip", "install", str(setuptools_wheel)])
86 venv.run(["pip", "install", "--no-cache-dir", "--upgrade", str(setuptools_sdist)])
89 def _check_test_command_install_requirements(venv, tmpdir): argument
[all …]
/aosp_15_r20/external/harfbuzz_ng/.circleci/
H A Dconfig.yml69 python3 -m venv venv
70 source venv/bin/activate
82 …- run: DEBIAN_FRONTEND=noninteractive apt install -y python3 python3-pip python3-venv ninja-build …
84 python3 -m venv venv
85 source venv/bin/activate
97 …- run: DEBIAN_FRONTEND=noninteractive apt install -y python3 python3-pip python3-venv ninja-build …
99 python3 -m venv venv
100 source venv/bin/activate
112 …- run: DEBIAN_FRONTEND=noninteractive apt install -y python3 python3-pip python3-venv ninja-build …
114 python3 -m venv venv
[all …]
/aosp_15_r20/external/python/httplib2/script/
Dtest40 if [[ ! -d ./venv-27 ]] ; then
41 virtualenv --python=python2.7 ./venv-27
43 if [[ ! -d ./venv-36 ]] ; then
44 virtualenv --python=python3.6 ./venv-36
47 ./venv-27/bin/pip install -e . -r requirements-test.txt
48 ./venv-27/bin/pytest ${test_flags[@]}
49 ./venv-36/bin/pip install -e . -r requirements-test.txt
50 ./venv-36/bin/pytest ${test_flags[@]}
53 # ./venv-27/bin/flake8 python2/
54 # ./venv-36/bin/flake8 python3/ tests/
[all …]
Drelease90 local venv=./venv-release
91 if [[ ! -d "$venv" ]] ; then
92 virtualenv $venv
93 $venv/bin/pip install -U check-manifest pip 'setuptools>=43.0' wheel twine
95 $venv/bin/python setup.py clean --all
96 $venv/bin/python setup.py sdist bdist_wheel
97 $venv/bin/check-manifest || echo "FIXME check-manifest" >&2
100 $venv/bin/twine upload dist/* || exit 1
/aosp_15_r20/external/pigweed/docs/
H A Dpython_build.rst36 <https://docs.python.org/3/library/venv.html>`_ (venvs) that expose a specific
39 When a Pigweed GN build starts a single venv is created for use by all
43 the venv. Of course if a new third-party package dependency is added it will be
50 **Every pw_python_action is run inside a venv**
64 subgraph pyactions1[Python venv 1]
66 venv1(fa:fa-folder out/python-venv &nbsp)
73 subgraph pyactions2[Python venv 2]
75 venv2(fa:fa-folder out/another-venv &nbsp)
84 Pigweed uses `this venv target
86 if a project does not specify it's own build venv. See
[all …]
/aosp_15_r20/external/python/cpython3/Doc/using/
Dvenv-create.inc1 Creation of :ref:`virtual environments <venv-def>` is done by executing the
2 command ``venv``::
4 python -m venv /path/to/new/virtual/environment
9 was run (a common name for the target directory is ``.venv``). It also creates
20 :ref:`deprecated in Python 3.6 <whatsnew36-venv>`.
23 The use of ``venv`` is now recommended for creating virtual environments.
27 On Windows, invoke the ``venv`` command as follows::
29 c:\>c:\Python35\python -m venv c:\path\to\myenv
34 c:\>python -m venv c:\path\to\myenv
38 usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear]
[all …]
/aosp_15_r20/external/python/cpython3/Doc/library/
Dvenv.rst1 :mod:`venv` --- Creation of virtual environments
4 .. module:: venv
12 **Source code:** :source:`Lib/venv/`
21 The :mod:`!venv` module supports creating lightweight "virtual environments",
45 .. include:: /using/venv-create.inc
67 (:samp:`{<venv>}` must be replaced by the path to the directory
73 | POSIX | bash/zsh | :samp:`$ source {<venv>}/bin/activate` |
75 | | fish | :samp:`$ source {<venv>}/bin/activate.fish` |
77 | | csh/tcsh | :samp:`$ source {<venv>}/bin/activate.csh` |
79 | | PowerShell | :samp:`$ {<venv>}/bin/Activate.ps1` |
[all …]
/aosp_15_r20/external/python/cpython3/Doc/
DMakefile8 VENVDIR = ./venv
28 autobuild-dev autobuild-stable venv
33 @echo " venv to create a venv with necessary tools"
69 echo "Please run 'make venv' to install local copies."; \
146 clean: clean-venv
149 clean-venv:
152 venv: target
154 echo "venv already exists."; \
155 echo "To recreate it, remove it first with \`make clean-venv'."; \
157 $(PYTHON) -m venv $(VENVDIR); \
[all …]
/aosp_15_r20/external/pigweed/pw_build/python_dist/
H A Dsetup.sh21 VENV="${DIR}/python-venv"
27 VENV="${1-}"
28 PY_TO_TEST="${VENV}/bin/python"
50 if [ ! -d "${VENV}" ]
52 ${PY_TO_TEST} -m venv "${VENV}"
57 "${VENV}/bin/python" -m pip install \
/aosp_15_r20/external/pigweed/pw_build/
H A Dpython_venv.gni28 # path = "test-venv"
132 # Note: The if the venv isn't in the out dir then we can't declare
211 # Set the venv to run this pip install in.
214 venv = get_label_info(":${invoker.target_name}", "label_no_toolchain")
280 # This target will run 'pip install' in the venv to provide base
286 # Set the venv to run this pip install in.
289 venv = get_label_info(":${invoker.target_name}", "label_no_toolchain")
334 # Set the venv to run this pip install in.
337 venv = get_label_info(":${invoker.target_name}", "label_no_toolchain")
409 # Set the venv to run this pip install in.
[all …]
/aosp_15_r20/external/python/cpython3/.azure-pipelines/
Dposix-steps.yml27 - script: ./python -m venv venv && ./venv/bin/python -m pip install -U coverage
30 - script: ./venv/bin/python -m test.pythoninfo
45 COMMAND: xvfb-run ./venv/bin/python
47 COMMAND: ./venv/bin/python
49 - script: ./venv/bin/python -m coverage xml
52 …- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash) -y .github/codecov…
/aosp_15_r20/external/mesa3d/meson_to_hermetic/
H A Dsetup-venv.sh2 if [ -d "venv" ]; then
3 echo "A venv folder already exists in this project!"
8 python3 -m venv venv
9 source venv/bin/activate
10 echo "Done creating new venv folder and terminal is now using venv."
/aosp_15_r20/external/python/cpython3/Tools/peg_generator/
DMakefile8 VENVDIR ?= ./venv
46 venv: target
47 $(PYTHON) -m venv $(VENVDIR)
50 @echo "The venv has been created in the $(VENVDIR) directory"
72 time_compile: venv data/xxl.py
75 time_parse: venv data/xxl.py
78 time_peg_dir: venv
86 time_stdlib: $(CPYTHON) venv
/aosp_15_r20/tools/asuite/atest/
H A Datest_completion.sh27 _deb_installer python3-venv python3-pip || return 1
29 requirements=(venv pyinstrument snakeviz)
77 local VENV="$ANDROID_HOST_OUT/.atest_venv"
78 [[ ! -d "$VENV" ]] && python3 -m venv "$VENV"
79 source "$VENV/bin/activate" || {
80 echo unable to activate venv.
/aosp_15_r20/external/fonttools/Doc/source/
H A Ddeveloper.rst13 …d creating a virtual environment, using the Python 3 `venv <https://docs.python.org/3/library/venv
19 # create new virtual environment called e.g. 'fonttools-venv', or anything you like
20 python -m venv fonttools-venv
23 . fonttools-venv/bin/activate
26 fonttools-venv\Scripts\activate.bat
/aosp_15_r20/external/python/watchdog/docs/source/
Dhacking.rst38 $ python -m venv venv
44 $ . venv/bin/activate
45 (venv)$ python -m pip instal -e '.'
51 > venv\Scripts\activate
52 (venv)> python -m pip instal -e '.'
/aosp_15_r20/external/python/pyfakefs/.github/workflows/dockerfiles/
DDockerfile_debian30 python3-venv
42 RUN python3 -m venv ../venv
43 RUN ../venv/bin/pip install -r requirements.txt
44 RUN ../venv/bin/pip install -r extra_requirements.txt
49 CMD ["../venv/bin/python", "-m", "pyfakefs.tests.all_tests"]
DDockerfile_ubuntu30 python3-venv
42 RUN python3 -m venv ../venv
43 RUN ../venv/bin/pip install -r requirements.txt
44 RUN ../venv/bin/pip install -r extra_requirements.txt
49 CMD ["../venv/bin/python", "-m", "pyfakefs.tests.all_tests"]
/aosp_15_r20/tools/test/mobly_extensions/tools/results_uploader/
DREADME.md44 python3 -m venv venv
45 source venv/bin/activate
51 python -m venv venv
52 venv\Scripts\activate
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/venv/
D__init__.py2 Virtual environment (venv) package for Python. Based on PEP 405.
43 :param upgrade_deps: Update the base venv modules to the latest on PyPI
103 return sysconfig.get_path(name, scheme='venv', vars=vars)
120 raise ValueError(f'Refusing to create a venv in {env_dir} because '
215 f.write(f'command = {sys.executable} -m venv {args}\n')
260 # Builds or venv's from builds need to remap source file
261 # locations, as we do not put them into Lib/venv/scripts
346 # normal venv handling.
369 'scripts' directory in the venv package is used as the source of
378 Hook for post-setup modification of the venv. Subclasses may install
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/venv/
D__init__.py2 Virtual environment (venv) package for Python. Based on PEP 405.
43 :param upgrade_deps: Update the base venv modules to the latest on PyPI
103 return sysconfig.get_path(name, scheme='venv', vars=vars)
120 raise ValueError(f'Refusing to create a venv in {env_dir} because '
215 f.write(f'command = {sys.executable} -m venv {args}\n')
260 # Builds or venv's from builds need to remap source file
261 # locations, as we do not put them into Lib/venv/scripts
346 # normal venv handling.
369 'scripts' directory in the venv package is used as the source of
378 Hook for post-setup modification of the venv. Subclasses may install

12345678910>>...18