We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc3f66 commit 02a832fCopy full SHA for 02a832f
setup.py
@@ -1,5 +1,13 @@
1
-import ez_setup
2
-ez_setup.use_setuptools()
+try:
+ from setuptools import setup
3
+except ImportError:
4
+ try:
5
+ import ez_setup
6
+ ez_setup.use_setuptools()
7
+ except ImportError:
8
+ raise ImportError("Gizeh could not be installed, probably because"
9
+ " neither setuptools nor ez_setup are installed on this computer."
10
+ "\nInstall ez_setup ([sudo] pip install ez_setup) and try again.")
11
12
from setuptools import setup, find_packages
13
0 commit comments