Skip to content

Commit 7371506

Browse files
bartoldemanboegel
andauthored
Use distutils if available (in Py 3.11 and under)
Co-authored-by: Kenneth Hoste <[email protected]>
1 parent b4c7070 commit 7371506

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
import glob
3232
import os
3333
import logging
34-
from setuptools import setup
34+
try:
35+
from distutils.core import setup
36+
except ImportError:
37+
from setuptools import setup
3538

3639
from easybuild.tools.version import VERSION
3740

0 commit comments

Comments
 (0)