Skip to content

Commit edbd082

Browse files
pradyunsgxavfernandez
authored andcommitted
Rename InstallRequirement.setup_py -> setup_py_path
1 parent 0015089 commit edbd082

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/pip/_internal/req/req_install.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def setup_py_dir(self):
457457
self.link and self.link.subdirectory_fragment or '')
458458

459459
@property
460-
def setup_py(self):
460+
def setup_py_path(self):
461461
# type: () -> str
462462
assert self.source_dir, "No source dir for %s" % self
463463

@@ -488,7 +488,7 @@ def load_pyproject_toml(self):
488488
pyproject_toml_data = load_pyproject_toml(
489489
self.use_pep517,
490490
self.pyproject_toml_path,
491-
self.setup_py,
491+
self.setup_py_path,
492492
str(self)
493493
)
494494

@@ -588,14 +588,14 @@ def run_egg_info(self):
588588
if self.name:
589589
logger.debug(
590590
'Running setup.py (path:%s) egg_info for package %s',
591-
self.setup_py, self.name,
591+
self.setup_py_path, self.name,
592592
)
593593
else:
594594
logger.debug(
595595
'Running setup.py (path:%s) egg_info for package from %s',
596-
self.setup_py, self.link,
596+
self.setup_py_path, self.link,
597597
)
598-
script = SETUPTOOLS_SHIM % self.setup_py
598+
script = SETUPTOOLS_SHIM % self.setup_py_path
599599
base_cmd = [sys.executable, '-c', script]
600600
if self.isolated:
601601
base_cmd += ["--no-user-cfg"]
@@ -757,7 +757,7 @@ def install_editable(
757757
[
758758
sys.executable,
759759
'-c',
760-
SETUPTOOLS_SHIM % self.setup_py
760+
SETUPTOOLS_SHIM % self.setup_py_path
761761
] +
762762
list(global_options) +
763763
['develop', '--no-deps'] +
@@ -1004,7 +1004,7 @@ def get_install_args(
10041004
# type: (...) -> List[str]
10051005
install_args = [sys.executable, "-u"]
10061006
install_args.append('-c')
1007-
install_args.append(SETUPTOOLS_SHIM % self.setup_py)
1007+
install_args.append(SETUPTOOLS_SHIM % self.setup_py_path)
10081008
install_args += list(global_options) + \
10091009
['install', '--record', record_filename]
10101010
install_args += ['--single-version-externally-managed']

src/pip/_internal/wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ def _base_setup_args(self, req):
930930
# virtualenv.
931931
return [
932932
sys.executable, '-u', '-c',
933-
SETUPTOOLS_SHIM % req.setup_py
933+
SETUPTOOLS_SHIM % req.setup_py_path,
934934
] + list(self.global_options)
935935

936936
def _build_one_pep517(self, req, tempd, python_tag=None):

0 commit comments

Comments
 (0)