
* Fix setuptools bootstrapping now that dependencies are no longer vendored * Reorder patch and comments * Use exact same patch as https://github.com/ActiveState/appdirs/pull/84 * Use exact same patch as https://sourceforge.net/p/pyparsing/patches/10/
21 lines
499 B
Diff
21 lines
499 B
Diff
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
|
|
|