Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
news
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sartika Aritonang
news
Commits
d8894105
Commit
d8894105
authored
May 29, 2020
by
Sartika Aritonang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
be329dd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
editable_legacy.py
...kages/pip/_internal/operations/install/editable_legacy.py
+52
-0
No files found.
stbi/Lib/site-packages/pip/_internal/operations/install/editable_legacy.py
0 → 100644
View file @
d8894105
"""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
,
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment