Skip to content

Commit

Permalink
Test subcommand of setup.py requires setuptools as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcepl committed Jun 7, 2018
1 parent cef56a6 commit 518fdf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def setup_package():
FULLVERSION, GIT_REVISION = get_version_info()
metadata['version'] = FULLVERSION
else:
if len(sys.argv) >= 2 and sys.argv[1] == 'bdist_wheel':
if len(sys.argv) >= 2 and sys.argv[1] in ['bdist_wheel', 'test']:
# bdist_wheel needs setuptools
import setuptools

Expand Down

0 comments on commit 518fdf3

Please sign in to comment.