Skip to content

Commit

Permalink
fix: do not ignore installer.max-workers for implicit PyPI source (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering authored Oct 31, 2024
1 parent 111118a commit 3b7ef12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/poetry/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,16 @@ def create_pool(
if repository.name.lower() == "pypi":
explicit_pypi = True

# Only add PyPI if no default repository is configured
# Only add PyPI if no primary repository is configured
if not explicit_pypi:
if pool.has_primary_repositories():
if io.is_debug():
io.write_line("Deactivating the PyPI repository")
else:
from poetry.repositories.pypi_repository import PyPiRepository

pool.add_repository(
PyPiRepository(disable_cache=disable_cache),
cls.create_package_source(
{"name": "pypi"}, config, disable_cache=disable_cache
),
priority=Priority.PRIMARY,
)

Expand Down

0 comments on commit 3b7ef12

Please sign in to comment.