Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 842825 - app-editors/vim does not provide python 2 support
Summary: app-editors/vim does not provide python 2 support
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-05 19:25 UTC by hangglider
Modified: 2024-05-06 06:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hangglider 2022-05-05 19:25:46 UTC
vim-core does configure --disable-pythoninterp in any case, independently on USE=python in app-editors/{,g}vim, effectively suppressing the use of python scripting in {,g}vim.

Reproducible: Always

Steps to Reproduce:
1. install app-editors/vim with USE=python
2. start vim
3. do :python print("Hello")
Actual Results:  
E319: Sorry, the command is not available in this version

Expected Results:  
Hello

This problem seems to be contained in all current vim versions and also needs a ix in app-editors/{,g}vim.
Comment 1 Mike Gilbert gentoo-dev 2022-05-05 19:36:52 UTC
The app-editors/vim-core configure options should have no effect on the vim binary installed by app-editors/vim.

In the app-editors/vim ebuild, we pass --enable-python3interp and --with-python3-command. That enables the "python3" command in vim, not the "python" command.

The "python" vim command is meant for Python 2 support. Gentoo no longer supports Python 2.
Comment 2 deniol 2024-05-06 06:49:46 UTC
The bug has been referenced in the following commit(s):



 app-antivirus/clamav/Manifest              |   1 -
 app-antivirus/clamav/clamav-0.103.5.ebuild | 239 -----------------------------
 2 files changed, 240 deletions(-)