blob: a4ba828c23f4b236052e5215ed4f853146b93437 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
diff --git a/setup.py b/setup.py
index 82061c6..ff342af 100644
--- a/setup.py
+++ b/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
|