neovim: fix python 3.10 detection
This commit is contained in:
parent
5fa864f48d
commit
e9c599486a
2 changed files with 24 additions and 1 deletions
23
srcpkgs/neovim/patches/python-3.10.patch
Normal file
23
srcpkgs/neovim/patches/python-3.10.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
From e78fc38908dfb9f952e75026987f0db1f9ce4253 Mon Sep 17 00:00:00 2001
|
||||
From: "Tejasvi S. Tomar" <45873379+tejasvi@users.noreply.github.com>
|
||||
Date: Thu, 7 Oct 2021 11:41:52 +0530
|
||||
Subject: [PATCH] Fix python provider's minor version comparison
|
||||
|
||||
`'3.10' < '3.3'` but v3.10 > v3.3
|
||||
---
|
||||
runtime/autoload/provider/pythonx.vim | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim
|
||||
index c292b374b6f5..0eeb35cba8f1 100644
|
||||
--- a/runtime/autoload/provider/pythonx.vim
|
||||
+++ b/runtime/autoload/provider/pythonx.vim
|
||||
@@ -96,7 +96,7 @@ function! provider#pythonx#CheckForModule(prog, module, major_version) abort
|
||||
if prog_version !~ '^' . a:major_version
|
||||
return [0, prog_path . ' is Python ' . prog_version . ' and cannot provide Python '
|
||||
\ . a:major_version . '.']
|
||||
- elseif prog_version =~ '^' . a:major_version && prog_version < min_version
|
||||
+ elseif prog_version =~ '^' . a:major_version && str2nr(prog_version[2:]) < str2nr(min_version[2:])
|
||||
return [0, prog_path . ' is Python ' . prog_version . ' and cannot provide Python >= '
|
||||
\ . min_version . '.']
|
||||
endif
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'neovim'
|
||||
pkgname=neovim
|
||||
version=0.5.1
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
build_helper="qemu"
|
||||
configure_args="-DCMAKE_BUILD_TYPE=Release"
|
||||
|
|
Loading…
Reference in a new issue