Skip to content

Commit 7e36aae

Browse files
committed
Merge pull request pypa#14 from dholth/wheel_build
make sure bdist_wheel is available up front
2 parents a0cd7b6 + e0f3535 commit 7e36aae

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pip/commands/wheel.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import absolute_import
3+
14
import os
25
import sys
36
from pip.basecommand import Command
@@ -50,7 +53,12 @@ def __init__(self):
5053
def run(self, options, args):
5154

5255
if sys.version_info < (2, 6):
53-
raise CommandError("'pip wheel' requires py2.6 or greater.")
56+
raise CommandError("'pip wheel' requires Python 2.6 or greater.")
57+
58+
try:
59+
import wheel.bdist_wheel
60+
except ImportError:
61+
raise CommandError("'pip wheel' requires bdist_wheel from the 'wheel' distribution.")
5462

5563
index_urls = [options.index_url] + options.extra_index_urls
5664
if options.no_index:

0 commit comments

Comments
 (0)