Switched from distutils to setuptools.distutils in response to a
message from python3 that says that distutils is deprecated and
that setuptools should be used instead.
diff --git a/common/foundry_install.py b/common/foundry_install.py
index e27009c..9a4625e 100755
--- a/common/foundry_install.py
+++ b/common/foundry_install.py
@@ -228,7 +228,10 @@
 #   %l :  substitute the library name
 #   %% :  substitute the percent character verbatim
 
-from distutils.version import LooseVersion
+try:
+    from setuptools.distutils.version import LooseVersion
+except:
+    from distutils.version import LooseVersion
 
 #----------------------------------------------------------------------------
 #----------------------------------------------------------------------------
diff --git a/common/staging_install.py b/common/staging_install.py
index ebc99f7..5c32223 100755
--- a/common/staging_install.py
+++ b/common/staging_install.py
@@ -77,7 +77,10 @@
 
 # NOTE:  This version of copy_tree from distutils works like shutil.copytree()
 # in Python 3.8 and up ONLY using "dirs_exist_ok=True".
-from distutils.dir_util import copy_tree
+try:
+    from setuptools.distutils.dir_util import copy_tree
+except:
+    from distutils.dir_util import copy_tree
 
 def makeuserwritable(filepath):
     if os.path.exists(filepath):