From 3cc64a88d489edf72af7bb0b40d956a9b39ba0c2 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 22 Jul 2021 15:46:38 +0800 Subject: [PATCH] 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.