# HG changeset patch # User Chun-wei Fan <fanchunwei@src.gnome.org> # Date 1626939998 -28800 # Thu Jul 22 15:46:38 2021 +0800 # Node ID 2b12dd122d8382282e90998ebadddcf09e847eaf # Parent 6dce35400fca04d1b48fd27e97d5dd3f3e319486 setup.py.in: Try to import setuptools This way, we can build binary wheels easily if needed diff --git a/python/setup.py.in b/python/setup.py.in --- 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.