We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3fd30a + 96f118e commit 763b69aCopy full SHA for 763b69a
setup.py
@@ -5,9 +5,13 @@
5
https://github.com/pypa/sampleproject
6
"""
7
8
-from ez_setup import use_setuptools
9
-use_setuptools()
10
-from setuptools import setup, find_packages
+try:
+ from setuptools import setup, find_packages
+except ImportError:
11
+ # Fallback for older environments without setuptools installed.
12
+ from ez_setup import use_setuptools
13
+ use_setuptools()
14
15
# To use a consistent encoding
16
from codecs import open
17
from os import path
0 commit comments