Skip to content

Commit

Permalink
setup.py now uses setuptools if available
Browse files Browse the repository at this point in the history
  • Loading branch information
uweschmitt authored and peterjc committed Jun 22, 2016
1 parent dcb71a5 commit 489d200
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions setup.py
Expand Up @@ -27,12 +27,20 @@
import os
import shutil

from distutils.core import setup
from distutils.core import Command
from distutils.command.install import install
from distutils.command.build_py import build_py
from distutils.command.build_ext import build_ext
from distutils.extension import Extension
try:
from setuptools import setup
from setuptools import Command
from setuptools.command.install import install
from setuptools.command.build_py import build_py
from setuptools.command.build_ext import build_ext
from setuptools import Extension
except ImportError:
from distutils.core import setup
from distutils.core import Command
from distutils.command.install import install
from distutils.command.build_py import build_py
from distutils.command.build_ext import build_ext
from distutils.extension import Extension

_CHECKED = None

Expand Down

0 comments on commit 489d200

Please sign in to comment.