[libxml2/python3-windows: 5/5] setup.py.in: Try to import setuptools
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2/python3-windows: 5/5] setup.py.in: Try to import setuptools
- Date: Thu, 18 Nov 2021 10:47:54 +0000 (UTC)
commit e891ab304e47efda8a12f1b8fee3f3f83dfd6d4b
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]