mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
If setuptools is importable, don't force use of 'distribute'.
Allows use of post-merge setuptools 0.7.
This commit is contained in:
7
setup.py
7
setup.py
@ -3,8 +3,11 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from distribute_setup import use_setuptools
|
try:
|
||||||
use_setuptools()
|
import setuptools
|
||||||
|
except ImportError:
|
||||||
|
from distribute_setup import use_setuptools
|
||||||
|
use_setuptools()
|
||||||
from setuptools import setup, Extension
|
from setuptools import setup, Extension
|
||||||
|
|
||||||
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02040000:
|
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02040000:
|
||||||
|
Reference in New Issue
Block a user