mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 20:33:57 +08:00
Clean up some whitespace, test python version the same (cleaner) way that trunk does
This commit is contained in:
@ -4,8 +4,8 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
from setuptools import setup, Extension
|
from setuptools import setup, Extension
|
||||||
|
|
||||||
if sys.version_info < (2, 3):
|
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02030000:
|
||||||
raise Error("Python-2.3 or newer is required")
|
raise Error("Python 2.3 or newer is required")
|
||||||
|
|
||||||
if os.name == "posix":
|
if os.name == "posix":
|
||||||
from setup_posix import get_config
|
from setup_posix import get_config
|
||||||
|
Reference in New Issue
Block a user