Gitiles
Code Review
Sign In
192.168.1.100
/
T108
/
e958203796650e3959a43708d67534bf36f4c83b
/
.
/
external
/
subpack
/
lang
/
python
/
python-packaging
/
test.sh
blob: 4fc13bae84bf543887f7d44f9fe570c017948ccf [
file
] [
log
] [
blame
]
#!/bin/sh
[
"$1"
=
python3
-
packaging
]
||
exit
0
python3
-
<<
EOF
import sys
from packaging
.
version import
Version
,
parse
v1
=
parse
(
"1.0a5"
)
v2
=
Version
(
"1.0"
)
sys
.
exit
(
0
if
v1
<
v2
else
1
)
EOF