[libxml2] setup.py.in: Try to import setuptools
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] setup.py.in: Try to import setuptools
- Date: Sun, 16 Jan 2022 15:02:04 +0000 (UTC)
commit 3cc64a88d489edf72af7bb0b40d956a9b39ba0c2
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]