Skip to content

Commit 5b42d8d

Browse files
committed
Disable GUI for Python 3.
The experimental GUI does not work with Python 3; disable it. Closes #114.
1 parent 1fab30b commit 5b42d8d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

setup.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
install_requires = [
77
'msgpack-python>=0.4.0',
88
]
9+
extras_require = {}
10+
entry_points = {}
911

1012
if sys.version_info < (3, 4):
1113
# trollius is just a backport of 3.4 asyncio module
@@ -24,6 +26,11 @@
2426
except ImportError:
2527
pass
2628

29+
if sys.version_info < (3, 0):
30+
# Experimental GUI only supported for Python 2.
31+
extras_require['GUI'] = ['click>=3.0', 'cairo', 'gobject']
32+
entry_points['console_scripts'] = ['pynvim=neovim.ui.cli:main [GUI]']
33+
2734
setup(name='neovim',
2835
version='0.0.35',
2936
description='Python client to neovim',
@@ -36,10 +43,6 @@
3643
'neovim.msgpack_rpc.event_loop', 'neovim.plugin'],
3744
install_requires=install_requires,
3845
ext_modules=cythonize('neovim/ui/screen.py') if has_cython else None,
39-
extras_require={
40-
'GUI': ['click>=3.0', 'cairo', 'gobject']
41-
},
42-
entry_points={
43-
'console_scripts': ['pynvim=neovim.ui.cli:main [GUI]'],
44-
},
46+
extras_require=extras_require,
47+
entry_points=entry_points,
4548
zip_safe=False)

0 commit comments

Comments
 (0)