No longer rely on setup_requires for wheel.

This commit is contained in:
Jason R. Coombs 2017-01-19 11:13:08 -05:00
parent 746dd7999f
commit 9f6eea591e

View File

@ -3,16 +3,12 @@
# Project skeleton maintained at https://github.com/jaraco/skeleton # Project skeleton maintained at https://github.com/jaraco/skeleton
import io import io
import sys
import setuptools import setuptools
with io.open('README.rst', encoding='utf-8') as readme: with io.open('README.rst', encoding='utf-8') as readme:
long_description = readme.read() long_description = readme.read()
needs_wheel = {'release', 'bdist_wheel', 'dists'}.intersection(sys.argv)
wheel = ['wheel'] if needs_wheel else []
name = 'skeleton' name = 'skeleton'
description = '' description = ''
@ -33,7 +29,7 @@ params = dict(
}, },
setup_requires=[ setup_requires=[
'setuptools_scm>=1.15.0', 'setuptools_scm>=1.15.0',
] + wheel, ],
classifiers=[ classifiers=[
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers", "Intended Audience :: Developers",