Skip to content

Commit ae87178

Browse files
committed
Use setuptools always when available. Fixes robotframework#2033
Fixes a deprecation warning when uninstalling with pip an installation done with "python setup.py install".
1 parent 9cc9390 commit ae87178

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
from os.path import abspath, join, dirname
66
from distutils.core import setup
77

8-
if 'develop' in sys.argv or 'bdist_wheel' in sys.argv:
9-
import setuptools # support setuptools development mode and wheels
8+
try:
9+
import setuptools # use setuptools when available
10+
except ImportError:
11+
pass
1012

1113
CURDIR = dirname(abspath(__file__))
1214

0 commit comments

Comments
 (0)