mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
Fix build with older Python versions
ModuleNotFoundError is only available since Python 3.6. Use the superclass ImportError instead. Fixes commit 3cc64a89. Fixes #347.
This commit is contained in:
@@ -6,7 +6,7 @@ import sys, os
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import setuptools
|
import setuptools
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
from distutils.core import setup, Extension
|
from distutils.core import setup, Extension
|
||||||
|
Reference in New Issue
Block a user