summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-07-22 15:46:38 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-07-22 15:47:57 +0800
commita52b7e2dae57da822ccaaf9cf68447bb0c15c36e (patch)
treeabb873597883ce80a246ece2a9d146f242e60635
parentf5c10af46cdace303cd203f461308fabe8eb7cf5 (diff)
downloadlibxml2-python3-windows.tar.gz
setup.py.in: Try to import setuptoolspython3-windows
This way, we can build binary wheels easily if needed
-rwxr-xr-xpython/setup.py.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/setup.py.in b/python/setup.py.in
index fce63824..012eb59a 100755
--- a/python/setup.py.in
+++ b/python/setup.py.in
@@ -3,6 +3,12 @@
# Setup script for libxml2 and libxslt if found
#
import sys, os
+
+try:
+ import setuptools
+except ModuleNotFoundError:
+ pass
+
from distutils.core import setup, Extension
# Below ROOT, we expect to find include, include/libxml2, lib and bin.