Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
/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 …]
/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 …]
/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
/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 …]
/external/pigweed/pw_build/python_dist/
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 \
Dsetup.bat20 python -m venv "%ROOT_DIR%\python-venv"
21 :: Use the venv python for pip installs
22 set "python=%ROOT_DIR%\python-venv\Scripts\python.exe"
36 :: Run pip install in the venv.
/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…
/external/python/timeout-decorator/
DMakefile2 venv: target
3 virtualenv venv
6 develop: venv
7 venv/bin/pip install -e . -r requirements-testing.txt tox
11 -rm -rf venv
/external/python/pyfakefs/.github/workflows/dockerfiles/
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"]
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"]
/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
/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 …]
/external/google-benchmark/docs/
Dpython_bindings.md16 environment. See the [official Python documentation](https://docs.python.org/3/library/venv.html)
24 python3 -m venv venv --system-site-packages
25 source venv/bin/activate # .\venv\Scripts\Activate.ps1 on Windows
/external/cronet/third_party/google_benchmark/src/docs/
Dpython_bindings.md16 environment. See the [official Python documentation](https://docs.python.org/3/library/venv.html)
24 python3 -m venv venv --system-site-packages
25 source venv/bin/activate # .\venv\Scripts\Activate.ps1 on Windows
/external/python/typing/docs/
DMakefile10 VENVDIR = ./venv
15 .PHONY: help clean build html text venv Makefile
37 venv: target
38 $(PYTHON) -m venv $(VENVDIR)
41 @echo "The venv has been created in the $(VENVDIR) directory"
/external/pigweed/docs/
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 …]
/external/pigweed/pw_build/
Dpython_venv.gni28 # path = "test-venv"
132 # Note: The if the venv isn't in the out dir then we can't declare
166 # pw_build/py is always needed for venv creation and Python lint checks.
212 # Set the venv to run this pip install in.
215 venv = get_label_info(":${invoker.target_name}", "label_no_toolchain")
281 # This target will run 'pip install' in the venv to provide base
287 # Set the venv to run this pip install in.
290 venv = get_label_info(":${invoker.target_name}", "label_no_toolchain")
335 # Set the venv to run this pip install in.
338 venv = get_label_info(":${invoker.target_name}", "label_no_toolchain")
[all …]
/external/python/portpicker/
Dpackage.sh4 python3 -m venv build/venv
5 . build/venv/bin/activate
11 echo 'When ready, upload to PyPI using: build/venv/bin/twine upload dist/*'
/external/fonttools/Doc/source/
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
/external/mesa3d/.gitlab-ci/common/
Dkdl.sh15 if [ -f /ci-kdl.venv/bin/activate ]; then
16 source /ci-kdl.venv/bin/activate
17 /ci-kdl.venv/bin/python /ci-kdl.venv/bin/ci-kdl | tee -a /results/kdl.log &
/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 …]

12345678910>>...12