From 2e9169effa9abf14f34f8436a791b8829eea7774 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Mon, 8 Aug 2022 20:00:52 -0400
Subject: [PATCH] Only require attrdict3 on Windows

It's only used on Windows, so only require it there.
---
 buildtools/config.py   | 4 ++--
 requirements/devel.txt | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/buildtools/config.py b/buildtools/config.py
index 20a2fd9d5..8072a2d2f 100644
--- a/buildtools/config.py
+++ b/buildtools/config.py
@@ -27,8 +27,6 @@
 
 import distutils.sysconfig
 
-from attrdict import AttrDict
-
 runSilently = False
 
 #----------------------------------------------------------------------
@@ -992,6 +990,8 @@ def getMSVCInfo(PYTHON, arch, set_env=False):
     if MSVCinfo is not None:
         return MSVCinfo
 
+    from attrdict import AttrDict
+
     # Note that it starts with a monkey-patch in setuptools.msvc to
     # workaround this issue: pypa/setuptools#1902
     cmd = \
diff --git a/requirements/devel.txt b/requirements/devel.txt
index cb7cb3c4a..d51d57b9a 100644
--- a/requirements/devel.txt
+++ b/requirements/devel.txt
@@ -21,4 +21,4 @@ Jinja2==2.10
 markupsafe==1.1.1
 doc2dash==2.3.0
 beautifulsoup4
-attrdict3
+attrdict3 ; sys_platform == 'win32'
