| /external/python/setuptools/setuptools/tests/ |
| D | test_distutils_adoption.py | 35 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 …]
|
| D | test_virtualenv.py | 17 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 …]
|
| D | test_editable_install.py | 10 def venv(tmp_path, setuptools_wheel): function 14 name=".venv", 97 def test_editable_with_pyproject(tmp_path, venv, setup_script): argument 103 cmd = [venv.exe(), "-m", "pip", "install", 108 cmd = [venv.exe(), "-m", "mypkg"]
|
| /external/python/httplib2/script/ |
| D | test | 40 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 …]
|
| D | release | 90 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/Lib/test/ |
| D | test_venv.py | 2 Test harness for the venv module. 21 import venv 30 # another venv, so no need to skip tests that require venv.create(). 34 'cannot run venv.create from within a venv on this platform') 48 """Base class for venv tests.""" 88 """Test venv module functionality.""" 99 self.run_with_capture(venv.create, self.env_dir) 126 builder = venv.EnvBuilder() 134 builder = venv.EnvBuilder(prompt='My prompt') 142 builder = venv.EnvBuilder(prompt='.') [all …]
|
| /external/pigweed/pw_build/python_dist/ |
| D | setup.sh | 21 VENV="${DIR}/python-venv" 26 VENV="${1-}" 27 PY_TO_TEST="${VENV}/bin/python" 44 if [ ! -d "${VENV}" ] 46 ${PY_TO_TEST} -m venv ${VENV} 49 ${VENV}/bin/python -m pip install --upgrade pip 51 # Uninstall wheels first, in case installing over an existing venv. This is a 56 ${VENV}/bin/python -m pip uninstall --yes $wheel 61 ${VENV}/bin/python -m pip install \
|
| D | setup.bat | 17 python3 -m venv %~dp0python-venv 20 %~dp0python-venv\Scripts\python.exe -m pip install --upgrade pip 24 …for %%f in (%~dp0python_wheels\*) do %~dp0python-venv\Scripts\python.exe -m pip install -c %~dp0co… 26 …for %%f in (%~dp0python_wheels\*) do %~dp0python-venv\Scripts\python.exe -m pip install --find-lin…
|
| D | README.md | 9 script will create a virtual environment called `python-venv`. 17 installation over an existing venv: 43 python-venv/bin/python -m <MODULE_NAME> [OPTIONS] 48 python-venv\Scripts\python -m <MODULE_NAME> [OPTIONS]
|
| /external/python/cpython3/Doc/using/ |
| D | venv-create.inc | 1 Creation of :ref:`virtual environments <venv-def>` is done by executing the 2 command ``venv``:: 4 python3 -m venv /path/to/new/virtual/environment 9 was run (a common name for the target directory is ``.venv``). It also creates 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] 98 ``include-system-site-packages`` key, set to ``true`` if ``venv`` is [all …]
|
| /external/python/cpython3/.azure-pipelines/ |
| D | posix-steps.yml | 27 - 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/ |
| D | Makefile | 2 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/cpython3/Tools/peg_generator/ |
| D | Makefile | 8 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/ |
| D | Makefile | 8 VENVDIR = ./venv 25 autobuild-dev autobuild-stable venv 30 @echo " venv to create a venv with necessary tools" 67 echo "Please run 'make venv' to install local copies."; \ 140 clean: clean-venv 143 clean-venv: 146 venv: target 148 echo "venv already exists."; \ 149 echo "To recreate it, remove it first with \`make clean-venv'."; \ 151 $(PYTHON) -m venv $(VENVDIR); \ [all …]
|
| /external/python/typing/docs/ |
| D | Makefile | 10 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/python/portpicker/ |
| D | package.sh | 4 python3 -m venv build/venv 5 . build/venv/bin/activate 11 echo 'When ready, upload to PyPI using: build/venv/bin/twine upload dist/*'
|
| D | test.sh | 4 python3 -m venv build/venv 5 . build/venv/bin/activate
|
| /external/fonttools/Doc/source/ |
| D | developer.rst | 13 …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/python/cpython3/PC/layout/support/ |
| D | options.py | 26 "venv": {"help": "venv"}, 49 "venv", 64 "venv", 80 "venv",
|
| /external/python/bumble/docs/mkdocs/src/development/ |
| D | python_environments.md | 12 ## venv section in PYTHON ENVIRONMENTS 14 `venv` is a standard module that is included with python. 15 Visit the [`venv` documentation](https://docs.python.org/3/library/venv.html) page for details.
|
| /external/grpc-grpc/tools/run_tests/helper_scripts/ |
| D | build_python.sh | 60 function venv() { function 100 VENV=${2:-$(venv "$PYTHON")} 133 $PYTHON -m virtualenv "$VENV" 134 VENV_PYTHON=$(script_realpath "$VENV/$VENV_RELATIVE_PYTHON") 151 case "$VENV" in
|
| /external/protobuf/python/ |
| D | release.sh | 14 virtualenv --no-site-packages -p `which $PYTHON` test-venv 18 touch test-venv/bin/protoc 19 chmod +x test-venv/bin/protoc 21 source test-venv/bin/activate 24 rm -fr test-venv
|
| /external/pandora/avatar/ |
| D | README.md | 11 python -m venv venv 12 source venv/bin/activate.fish # or any other shell
|
| /external/fonttools/ |
| D | .gitignore | 35 .venv 37 venv/ 40 venv.bak/
|
| /external/rust/crates/grpcio-sys/grpc/tools/run_tests/helper_scripts/ |
| D | build_python.sh | 66 function venv() { function 108 VENV=${2:-$(venv "$PYTHON")} 149 $PYTHON -m virtualenv "$VENV" 150 VENV_PYTHON=$(script_realpath "$VENV/$VENV_RELATIVE_PYTHON") 177 case "$VENV" in
|