diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2017-02-28 04:41:39 +0000 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2017-02-28 04:41:39 +0000 |
commit | 3d5bf412211e11faf85c527d68b81f9d1e71db42 (patch) | |
tree | e0898acb5bd574f563408594ed54a9b5ba242e09 /src/setup.py | |
parent | aad0144955406d5c613e451c43b6251cf58f88e7 (diff) | |
download | pyparsing-git-3d5bf412211e11faf85c527d68b81f9d1e71db42.tar.gz |
Updated setup.py to address recursive import problems now that pyparsing is part of 'packaging' (used by setuptools).
Diffstat (limited to 'src/setup.py')
-rw-r--r-- | src/setup.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/setup.py b/src/setup.py index 82061c6..dbe2743 100644 --- a/src/setup.py +++ b/src/setup.py @@ -1,7 +1,13 @@ #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
-from setuptools import setup
+
+# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
+# installing without it to avoid bootstrap problems.
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
import sys
import os
|