Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149531893
D18781.id52661.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D18781.id52661.diff
View Options
Index: sysutils/py-consul/Makefile
===================================================================
--- sysutils/py-consul/Makefile
+++ sysutils/py-consul/Makefile
@@ -3,6 +3,7 @@
PORTNAME= consul
PORTVERSION= 1.1.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= sysutils
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -18,7 +19,7 @@
${PYTHON_PKGNAMEPREFIX}requests>=2.0.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.4:devel/py-six@${PY_FLAVOR}
-USES= python:3.6+
+USES= python:2.7-3.6+
USE_GITHUB= yes
GH_ACCOUNT= cablehead
Index: sysutils/py-consul/files/patch-setup.py
===================================================================
--- /dev/null
+++ sysutils/py-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)
+
+
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 26, 1:48 AM (6 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30358596
Default Alt Text
D18781.id52661.diff (1 KB)
Attached To
Mode
D18781: sysutils/py-consul: allow python 2.7 to be used
Attached
Detach File
Event Timeline
Log In to Comment