From 8bbd237d3290fd82d2e0354638a55f4a884a1d7d Mon Sep 17 00:00:00 2001 From: Serkan Hosca Date: Mon, 14 Dec 2020 10:13:51 -0500 Subject: [PATCH 1/2] Also check for dist-packages for first party apps --- src/django_linear_migrations/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/django_linear_migrations/apps.py b/src/django_linear_migrations/apps.py index 4161402..8f9d5d4 100644 --- a/src/django_linear_migrations/apps.py +++ b/src/django_linear_migrations/apps.py @@ -21,7 +21,7 @@ def ready(self): def is_first_party_app_config(app_config): # Check if it seems to be installed in a virtualenv path = Path(app_config.path) - return "site-packages" not in path.parts + return "site-packages" not in path.parts and "dist-packages" not in path.parts def first_party_app_configs(): From f42635cc309d94bda66a9ed06c562c295d571ec0 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 14 Dec 2020 15:23:56 +0000 Subject: [PATCH 2/2] add HISTORY note --- HISTORY.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HISTORY.rst b/HISTORY.rst index 91ca8f0..f1d8de8 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,8 @@ History ======= +* Also assume modules in ``dist-packages`` are third-party apps. + 1.1.0 (2020-12-13) ------------------