Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #14 from dholth/wheel_build

make sure bdist_wheel is available up front
  • Loading branch information...
commit 7e36aaeb4eb53b3dca71b4062bb8d212387d5c25 2 parents a0cd7b6 + e0f3535
@qwcode authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 pip/commands/wheel.py
View
10 pip/commands/wheel.py
@@ -1,3 +1,6 @@
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import
+
import os
import sys
from pip.basecommand import Command
@@ -50,7 +53,12 @@ def __init__(self):
def run(self, options, args):
if sys.version_info < (2, 6):
- raise CommandError("'pip wheel' requires py2.6 or greater.")
+ raise CommandError("'pip wheel' requires Python 2.6 or greater.")
+
+ try:
+ import wheel.bdist_wheel
+ except ImportError:
+ raise CommandError("'pip wheel' requires bdist_wheel from the 'wheel' distribution.")
index_urls = [options.index_url] + options.extra_index_urls
if options.no_index:
Please sign in to comment.
Something went wrong with that request. Please try again.