mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +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:
3
setup.py
3
setup.py
@ -3,6 +3,9 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
try:
|
||||||
|
import setuptools
|
||||||
|
except ImportError:
|
||||||
from distribute_setup import use_setuptools
|
from distribute_setup import use_setuptools
|
||||||
use_setuptools()
|
use_setuptools()
|
||||||
from setuptools import setup, Extension
|
from setuptools import setup, Extension
|
||||||
|
Reference in New Issue
Block a user