Skip to content

Commit 92ff129

Browse files
committed
Fixed index_url logic in develop compatibility shim.
Closes #4966
1 parent 9f091ff commit 92ff129

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

newsfragments/4966.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed index_url logic in develop compatibility shim.

setuptools/command/develop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def run(self):
3434
+ ['--no-deps'] * self.no_deps
3535
+ ['--user'] * self.user
3636
+ ['--prefix', self.prefix] * bool(self.prefix)
37-
+ ['--index-url', self.index_url] * bool(self.prefix)
37+
+ ['--index-url', self.index_url] * bool(self.self.index_url)
3838
)
3939
subprocess.check_call(cmd)
4040

0 commit comments

Comments
 (0)