setup.py: default to setuptools

This commit is contained in:
Christoph Reiter 2018-04-15 10:41:53 +02:00
parent 1786acfe70
commit 2131602d7e
2 changed files with 8 additions and 9 deletions

View File

@ -76,9 +76,8 @@ script:
- python setup.py bdist
- python setup.py install --root=_root
- python setup.py install --root="$(pwd)"/_root_abs
- python setup.py install --user
- PYCAIRO_SETUPTOOLS=1 python setup.py bdist_egg
- PYCAIRO_SETUPTOOLS=1 python setup.py bdist_wheel
- PYCAIRO_SETUPTOOLS=1 python setup.py install --root=_root_setup
- python setup.py bdist_egg
- python setup.py bdist_wheel
- python setup.py install --root=_root_setup
- if [[ "${TRAVIS_PYTHON_VERSION:0:4}" != "pypy" ]] ; then python -m pip install .; fi
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.3" ]]; then python -m sphinx -W -a -E -b html -n docs docs/_build; fi

View File

@ -6,12 +6,12 @@ import sys
import os
import errno
if os.environ.get("PYCAIRO_SETUPTOOLS"):
# for testing
import setuptools
setuptools
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from distutils.core import Extension, setup, Command, Distribution
from distutils.core import Extension, Command, Distribution
from distutils.ccompiler import new_compiler
from distutils.sysconfig import customize_compiler
from distutils import log