Skip to content

Commit

Permalink
Auto-detect CA Cert path instead of requiring users to hack setup.py
Browse files Browse the repository at this point in the history
Also fixed nearby comments to wrap at 79 characters as per PEP8
  • Loading branch information
schmichael committed Jun 4, 2012
1 parent b026def commit 62a23bf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@
'requests.packages.urllib3.packages.mimetools_choose_boundary',
]

# certifi is a Python package containing a CA certificate bundle for SSL verification.
# On certain supported platforms (e.g., Red Hat / Debian / FreeBSD), Requests can
# use the system CA bundle instead; see `requests.utils` for details.
# If your platform is supported, set `requires` to [] instead:
requires = ['certifi>=0.0.7']
requires = []

# certifi is a Python package containing a CA certificate bundle for SSL
# verification. On certain supported platforms (e.g., Red Hat / Debian /
# FreeBSD), Requests can use the system CA bundle instead; see `requests.utils`
# for details.
if not requests.utils.get_os_ca_bundle_path():
requires.append('certifi>=0.0.7')

# chardet is used to optimally guess the encodings of pages that don't declare one.
# At this time, chardet is not a required dependency. However, it's sufficiently
Expand Down

0 comments on commit 62a23bf

Please sign in to comment.