Skip to content

Commit 763b69a

Browse files
authored
Merge pull request #166 from adafruit/python314
fix(setup): fall back to ez_setup (not default)
2 parents a3fd30a + 96f118e commit 763b69a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
https://github.com/pypa/sampleproject
66
"""
77

8-
from ez_setup import use_setuptools
9-
use_setuptools()
10-
from setuptools import setup, find_packages
8+
try:
9+
from setuptools import setup, find_packages
10+
except ImportError:
11+
# Fallback for older environments without setuptools installed.
12+
from ez_setup import use_setuptools
13+
use_setuptools()
14+
from setuptools import setup, find_packages
1115
# To use a consistent encoding
1216
from codecs import open
1317
from os import path

0 commit comments

Comments
 (0)