We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51191b7 + e24bc21 commit 87904c3Copy full SHA for 87904c3
setup.py
@@ -5,7 +5,17 @@
5
import os
6
import sys
7
8
-from setuptools import setup
+# While I generally consider it an antipattern to try and support both
9
+# setuptools and distutils with a single setup.py, in this specific instance
10
+# where certifi is a dependency of setuptools, it can create a circular
11
+# dependency when projects attempt to unbundle stuff from setuptools and pip.
12
+# Though we don't really support that, it makes things easier if we do this and
13
+# should hopefully cause less issues for end users.
14
+try:
15
+ from setuptools import setup
16
+except ImportError:
17
+ from distutils.core import setup
18
+
19
20
version_regex = r'__version__ = ["\']([^"\']*)["\']'
21
with open('certifi/__init__.py', 'r') as f:
0 commit comments