We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0cd7b6 + e0f3535 commit 7e36aaeCopy full SHA for 7e36aae
pip/commands/wheel.py
@@ -1,3 +1,6 @@
1
+# -*- coding: utf-8 -*-
2
+from __future__ import absolute_import
3
+
4
import os
5
import sys
6
from pip.basecommand import Command
@@ -50,7 +53,12 @@ def __init__(self):
50
53
def run(self, options, args):
51
54
52
55
if sys.version_info < (2, 6):
- 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.")
62
63
index_urls = [options.index_url] + options.extra_index_urls
64
if options.no_index:
0 commit comments