mirror of
				https://github.com/astral-sh/uv.git
				synced 2025-11-03 21:23:54 +00:00 
			
		
		
		
	Block Python <3.7 not only on linux (#7266)
There's no reason for this check to be limited to linux.
This commit is contained in:
		
							parent
							
								
									0e9870078e
								
							
						
					
					
						commit
						c7ff70b281
					
				
					 1 changed files with 11 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -442,19 +442,19 @@ def get_operating_system_and_architecture():
 | 
			
		|||
        version = None
 | 
			
		||||
        architecture = version_arch
 | 
			
		||||
 | 
			
		||||
    if operating_system == "linux":
 | 
			
		||||
        if sys.version_info < (3, 7):
 | 
			
		||||
            print(
 | 
			
		||||
                json.dumps(
 | 
			
		||||
                    {
 | 
			
		||||
                        "result": "error",
 | 
			
		||||
                        "kind": "unsupported_python_version",
 | 
			
		||||
                        "python_version": format_full_version(sys.version_info),
 | 
			
		||||
                    }
 | 
			
		||||
                )
 | 
			
		||||
    if sys.version_info < (3, 7):
 | 
			
		||||
        print(
 | 
			
		||||
            json.dumps(
 | 
			
		||||
                {
 | 
			
		||||
                    "result": "error",
 | 
			
		||||
                    "kind": "unsupported_python_version",
 | 
			
		||||
                    "python_version": format_full_version(sys.version_info),
 | 
			
		||||
                }
 | 
			
		||||
            )
 | 
			
		||||
            sys.exit(0)
 | 
			
		||||
        )
 | 
			
		||||
        sys.exit(0)
 | 
			
		||||
 | 
			
		||||
    if operating_system == "linux":
 | 
			
		||||
        # noinspection PyProtectedMember
 | 
			
		||||
        from .packaging._manylinux import _get_glibc_version
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue