* setup.py.in: Drop fallback code for distutils in case setuptools is
not available
--

We are now using the pyproject.toml file to statically declare our build
time dependencies.  This ensures that a compatible version of setuptools
should be available by the time the setup.py file is executed.  For that
reason we do not need the fallback code any longer.

Also order imports according to PEP-8 and drop unused "glob" import.

Signed-off-by: Lucas Hoffmann <l...@posteo.de>
---
 setup.py.in | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/setup.py.in b/setup.py.in
index 3f57232..c866a1b 100755
--- a/setup.py.in
+++ b/setup.py.in
@@ -18,14 +18,6 @@
 #    License along with this library; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
-try:
-    from setuptools import setup, Extension
-    from setuptools.command.build import build
-except ImportError:
-    from distutils.core import setup, Extension
-    from distutils.command.build import build
-
-import glob
 import os
 import os.path
 import re
@@ -33,6 +25,9 @@ import shutil
 import subprocess
 import sys
 
+from setuptools import setup, Extension
+from setuptools.command.build import build
+
 # Out-of-tree build of the gpg bindings.
 gpgme_h = ''
 include_dirs = [os.getcwd()]
_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel

Reply via email to