```
security/py-{acme,certbot,acme}: fix after 0.13.0 update.}: Make argparse a conditional dependency
- Add patch to make argparse dependency conditional
Traceback (most recent call last):Backport an upstream patch [1][2] to setup.py making argparse a conditional
dependency. Without this change, the following error is observed at run-time:
File "/usr/local/bin/certbot", line 6, in <module>pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by certbot
This is due to the separate argparse distribution (via PyPI) no longer being
from pkg_resources import load_entry_pointrequired for Python versions >= 2.7 and >= 3.2, as they contain the argparse module
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3019,in the standard library. in <module>install_requires is only relevant for non standard
@_call_asidelibrary packages and therefore should only be added/used for those Python versions
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3003, in _call_asidethat do not contain a built-in argparse module.
[1] https://github.com/certbot/certbot/pull/4554
f(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 655, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 963, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by certbot[2] https://github.com/certbot/certbot/issues/4485
PR: 218973
Reported by: jim@ohlste.inolgeni
Approved by: koobs (py-certbot, maintainer)
MFH: 2017Q2 (blanket)
Obtained from: https://github.com/certbot/certbot/commit/89af460792fcdfb23c7dc4f9fcdec1bfa07a2656
Differential_Revision: D10546
```