Skip to content

Commit

Permalink
Use sysconfig on all supported python versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius authored and oz123 committed Aug 19, 2022
1 parent c2daec8 commit 1b6fa94
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pipenv/patched/pip/_internal/locations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

_PLATLIBDIR: str = getattr(sys, "platlibdir", "lib")

_USE_SYSCONFIG_DEFAULT = sys.version_info >= (3, 10)
_USE_SYSCONFIG_DEFAULT = sys.version_info >= (3, 7)


def _should_use_sysconfig() -> bool:
Expand Down
13 changes: 13 additions & 0 deletions tasks/vendoring/patches/patched/_post_pip_import.patch
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,16 @@ index 0ba06c52..6fdb59b7 100644


class LinkCandidate(_InstallRequirementBackedCandidate):
diff --git a/pipenv/patched/pip/_internal/locations/__init__.py b/pipenv/patched/pip/_internal/locations/__init__.py
index 23eaea64..fe5dd5b4 100644
--- a/pipenv/patched/pip/_internal/locations/__init__.py
+++ b/pipenv/patched/pip/_internal/locations/__init__.py
@@ -41,7 +41,7 @@ logger = logging.getLogger(__name__)

_PLATLIBDIR: str = getattr(sys, "platlibdir", "lib")

-_USE_SYSCONFIG_DEFAULT = sys.version_info >= (3, 10)
+_USE_SYSCONFIG_DEFAULT = sys.version_info >= (3, 7)


def _should_use_sysconfig() -> bool:

0 comments on commit 1b6fa94

Please sign in to comment.