diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-07-22 15:46:38 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-07-22 15:47:57 +0800 |
commit | a52b7e2dae57da822ccaaf9cf68447bb0c15c36e (patch) | |
tree | abb873597883ce80a246ece2a9d146f242e60635 | |
parent | f5c10af46cdace303cd203f461308fabe8eb7cf5 (diff) | |
download | libxml2-python3-windows.tar.gz |
setup.py.in: Try to import setuptoolspython3-windows
This way, we can build binary wheels easily if needed
-rwxr-xr-x | python/setup.py.in | 6 |
1 files changed, 6 insertions, 0 deletions
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. |