File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1818def get_proj_version (proj_dir : Path ) -> str :
1919 proj_version = os .environ .get ("PROJ_VERSION" )
2020 if proj_version :
21- return parse_version ( proj_version ). base_version
21+ return proj_version
2222 proj = proj_dir / "bin" / "proj"
2323 proj_ver = subprocess .check_output (str (proj ), stderr = subprocess .STDOUT ).decode (
2424 "ascii"
2525 )
26- return parse_version (( proj_ver .split ()[1 ]).strip ("," )). base_version
26+ return ( proj_ver .split ()[1 ]).strip ("," )
2727
2828
2929def check_proj_version (proj_version : str ) -> None :
@@ -155,7 +155,9 @@ def get_extension_modules():
155155
156156 proj_version = get_proj_version (proj_dir )
157157 check_proj_version (proj_version )
158- proj_version_major , proj_version_minor , proj_version_patch = proj_version .split ("." )
158+ proj_version_major , proj_version_minor , proj_version_patch = parse_version (
159+ proj_version
160+ ).base_version .split ("." )
159161
160162 # setup extension options
161163 ext_options = {
You can’t perform that action at this time.
0 commit comments