mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
- Renamed to match the project name Approved by: araujo (mentor) Differential Revision: https://reviews.freebsd.org/D18962
23 lines
833 B
Python
23 lines
833 B
Python
--- 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)
|
|
|
|
|