Skip to content

Commit 96f118e

Browse files
committed
fix(setup): fall back to ez_setup (not default)
Fixes #165
1 parent a3fd30a commit 96f118e

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

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)