[libxml2/python3-windows: 32/32] setup.py.in: Try to import setuptools




commit a52b7e2dae57da822ccaaf9cf68447bb0c15c36e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Jul 22 15:46:38 2021 +0800

    setup.py.in: Try to import setuptools
    
    This way, we can build binary wheels easily if needed

 python/setup.py.in | 6 ++++++
 1 file changed, 6 insertions(+)
---
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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]