Skip to content

Commit 72770fa

Browse files
committed
Better build failure hints PYTHON-393
1 parent 7184111 commit 72770fa

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

setup.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ class custom_build_ext(build_ext):
129129
WARNING: %s could not
130130
be compiled. No C extensions are essential for PyMongo to run,
131131
although they do result in significant speed improvements.
132+
%s
133+
134+
Please see the installation docs for solutions to build issues:
135+
136+
http://api.mongodb.org/python/current/installation.html
137+
138+
Here are some hints for popular operating systems:
132139
133140
If you are seeing this message on Linux you probably need to
134141
install GCC and/or the Python development package for your
@@ -142,7 +149,16 @@ class custom_build_ext(build_ext):
142149
143150
$ sudo yum install gcc python-devel
144151
145-
%s
152+
If you are seeing this message on Microsoft Windows please install
153+
PyMongo using the MS Windows installer for your version of Python,
154+
available on pypi here:
155+
156+
http://pypi.python.org/pypi/pymongo/#downloads
157+
158+
If you are seeing this message on OSX please read the documentation
159+
here:
160+
161+
http://api.mongodb.org/python/current/installation.html#osx
146162
********************************************************************
147163
"""
148164

@@ -180,9 +196,10 @@ def build_extension(self, ext):
180196
sys.stdout.write('%s\n' % str(e))
181197
warnings.warn(self.warning_message % ("The %s extension "
182198
"module" % (name,),
183-
"Above is the ouput "
184-
"showing how the "
185-
"compilation failed."))
199+
"The output above "
200+
"this warning shows how "
201+
"the compilation "
202+
"failed."))
186203
else:
187204
warnings.warn(self.warning_message % ("The %s extension "
188205
"module" % (name,),

0 commit comments

Comments
 (0)