diff options
author | John Hixson <jhixson@FreeBSD.org> | 2019-01-31 05:03:36 +0000 |
---|---|---|
committer | John Hixson <jhixson@FreeBSD.org> | 2019-01-31 05:03:36 +0000 |
commit | a207c54f02fa0ee8fbf0964c9205ef1e0388095e (patch) | |
tree | e0e6365c78baf1d156b257b8504e172c8183959e /sysutils/py-python-consul/files | |
parent | misc/py-SoapySDR: Update 0.7.0 -> 0.7.1 (diff) |
sysutils/py-consul: rename to sysutils/py-python-consul
- Renamed to match the project name
Approved by: araujo (mentor)
Differential Revision: https://reviews.freebsd.org/D18962
Notes
Notes:
svn path=/head/; revision=491686
Diffstat (limited to 'sysutils/py-python-consul/files')
-rw-r--r-- | sysutils/py-python-consul/files/patch-setup.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/py-python-consul/files/patch-setup.py b/sysutils/py-python-consul/files/patch-setup.py new file mode 100644 index 000000000000..bf913532c37e --- /dev/null +++ b/sysutils/py-python-consul/files/patch-setup.py @@ -0,0 +1,23 @@ +--- setup.py.orig 2018-07-09 03:59:48 UTC ++++ setup.py +@@ -22,14 +22,15 @@ description = "Python client for Consul (http://www.co + + py_modules = [os.path.splitext(x)[0] for x in glob.glob('consul/*.py')] + ++# Issue #123: skip installation of consul.aio if python version < 3.4.2 ++# as this version or later is required by aiohttp ++if sys.version_info < (3, 4, 2): ++ if 'consul/aio' in py_modules: ++ py_modules.remove('consul/aio') + ++ + class Install(install): + def run(self): +- # Issue #123: skip installation of consul.aio if python version < 3.4.2 +- # as this version or later is required by aiohttp +- if sys.version_info < (3, 4, 2): +- if 'consul/aio' in self.distribution.py_modules: +- self.distribution.py_modules.remove('consul/aio') + install.run(self) + + |