File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11
11
from .extension import RustExtension
12
12
from .utils import cpython_feature , get_rust_version
13
13
14
- MIN_VERSION = semantic_version .Spec ('1.16' )
14
+ MIN_VERSION = semantic_version .Spec ('>= 1.16' )
15
15
16
16
17
17
class check_rust (Command ):
@@ -32,6 +32,8 @@ def run(self):
32
32
33
33
version = get_rust_version ()
34
34
if version not in MIN_VERSION :
35
+ print ('Rust version mismatch: required rust%s got rust%s' % (
36
+ MIN_VERSION , version ))
35
37
return
36
38
37
39
# Make sure that if pythonXX-sys is used, it builds against the current
@@ -70,6 +72,7 @@ def run(self):
70
72
except OSError :
71
73
raise DistutilsExecError (
72
74
"Unable to execute 'cargo' - this package "
73
- "requires rust to be installed and cargo to be on the PATH" )
75
+ "requires rust to be installed and "
76
+ "cargo to be on the PATH" )
74
77
else :
75
78
print ("Extension '%s' checked" % ext .name )
You can’t perform that action at this time.
0 commit comments