"""Legacy editable installation process, i.e. `setup.py develop`. """ import logging from pip._internal.utils.logging import indent_log from pip._internal.utils.setuptools_build import make_setuptools_develop_args from pip._internal.utils.subprocess import call_subprocess from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import List, Optional, Sequence from pip._internal.build_env import BuildEnvironment logger = logging.getLogger(__name__) def install_editable( install_options, # type: List[str] global_options, # type: Sequence[str] prefix, # type: Optional[str] home, # type: Optional[str] use_user_site, # type: bool name, # type: str setup_py_path, # type: str isolated, # type: bool build_env, # type: BuildEnvironment unpacked_source_directory, # type: str ): # type: (...) -> None """Install a package in editable mode. Most arguments are pass-through to setuptools. """ logger.info('Running setup.py develop for %s', name) args = make_setuptools_develop_args( setup_py_path, global_options=global_options, install_options=install_options, no_user_config=isolated, prefix=prefix, home=home, use_user_site=use_user_site, ) with indent_log(): with build_env: call_subprocess( args, cwd=unpacked_source_directory, )
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
.__init__.pyo.40009 | File | 244 B | 0644 |
|
.editable_legacy.pyo.40009 | File | 1.56 KB | 0644 |
|
.legacy.pyo.40009 | File | 3.9 KB | 0644 |
|
__init__.py | File | 51 B | 0644 |
|
__init__.pyc | File | 244 B | 0644 |
|
__init__.pyo | File | 244 B | 0644 |
|
editable_legacy.py | File | 1.45 KB | 0644 |
|
editable_legacy.pyc | File | 1.56 KB | 0644 |
|
editable_legacy.pyo | File | 1.56 KB | 0644 |
|
legacy.py | File | 4.18 KB | 0644 |
|
legacy.pyc | File | 3.9 KB | 0644 |
|
legacy.pyo | File | 3.9 KB | 0644 |
|
wheel.py | File | 30.58 KB | 0644 |
|
wheel.pyc | File | 26.19 KB | 0644 |
|
wheel.pyo | File | 26.1 KB | 0644 |
|