diff options
author | Steven Michalske <smichalske@gmail.com> | 2015-08-06 22:29:23 -0700 |
---|---|---|
committer | Steven Michalske <smichalske@gmail.com> | 2015-08-06 22:36:24 -0700 |
commit | b028b25e269a2b6911436517724145056a5b2baf (patch) | |
tree | daab47b0792c541cc25a2d42ea7cb6ffd567c9d2 /setup.py | |
parent | 2a9486ddb58fb7cc1864d094b1dd6fd6fc5f3739 (diff) | |
download | pyserial-git-b028b25e269a2b6911436517724145056a5b2baf.tar.gz |
Migrate to setuptools if installed.
Provides more installer commands such as the ever helpful develop mode.
Ignore build products.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -11,8 +11,10 @@ import sys -from distutils.core import setup - +try: + from setuptools import setup +except ImportError: + from distutils.core import setup # importing version does not work with Python 3 as files have not yet been # converted. |