Skip to content

Commit d658c47

Browse files
committed
Merge pull request pytest-dev#37 from ahlmss/respect_i_flag_to_pyinstall
Ensure we can pass the -i flag to pyinstall, even if we have a configuration file.
2 parents 477d501 + da34d89 commit d658c47

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎pkglib/pkglib/setuptools/command/pyinstall.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def initialize_options(self):
5959
self.third_party = False
6060
self.source = False
6161
self.eggs = False
62-
self.index_url = None
62+
self.index_url = self.maybe_add_simple_index(CONFIG.pypi_url)
6363

6464
def finalize_options(self):
6565
# UNKNOWN distro name is set when this is run from pyinstall the
@@ -100,8 +100,6 @@ def finalize_options(self):
100100
self.update = False
101101
self.egg_args = None
102102

103-
self.index_url = self.maybe_add_simple_index(CONFIG.pypi_url)
104-
105103
def run(self):
106104
# Lazy import here to allow pkgutils to bootstrap itself
107105
from pkglib.setuptools.buildout import install

0 commit comments

Comments
 (0)