Skip to content

Commit c3f8024

Browse files
committed
DOC: improve documentation for building extensions on windows
Author: Jeff Reback <[email protected]> Closes #12428 from jreback/windows and squashes the following commits: 638ff52 [Jeff Reback] DOC: improve documentation for building extensions on windows
1 parent a652290 commit c3f8024

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

doc/source/contributing.rst

+26-3
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,9 @@ For a python 3 environment::
169169

170170
conda create -n pandas_dev python=3 --file ci/requirements_dev.txt
171171

172+
.. warning::
172173

173-
If you are on Windows, then you will also need to install the compiler linkages::
174-
175-
conda install -n pandas_dev libpython
174+
If you are on Windows, see :ref:`here for a fully compliant Windows environment <contributing.windows>`.
176175

177176
This will create the new environment, and not touch any of your existing environments,
178177
nor any existing python installation. It will install all of the basic dependencies of
@@ -207,6 +206,29 @@ See the full conda docs `here <http://conda.pydata.org/docs>`__.
207206

208207
At this point you can easily do an *in-place* install, as detailed in the next section.
209208

209+
.. _contributing.windows:
210+
211+
Creating a Windows development environment
212+
------------------------------------------
213+
214+
To build on Windows, you need to have compilers installed to build the extensions. You will need to install the appropriate Visual Studio compilers, VS 2008 for Python 2.7, VS 2010 for 3.4, and VS 2015 for Python 3.5.
215+
216+
For Python 2.7, you can install the ``mingw`` compiler which will work equivalently to VS 2008::
217+
218+
conda install -n pandas_dev libpython
219+
220+
or use the [Microsoft Visual Studio VC++ compiler for Python](https://www.microsoft.com/en-us/download/details.aspx?id=44266). Note that you have to check the ``x64`` box to install the ``x64`` extension building capability as this is not installed by default.
221+
222+
For Python 3.4, you can download and install the [Windows 7.1 SDK](https://www.microsoft.com/en-us/download/details.aspx?id=8279)
223+
For Python 3.5, you can download and install the [Visual Studio 2015 Community Edition](https://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx).
224+
225+
Here are some references:
226+
227+
- https://github.com/conda/conda-recipes/wiki/Building-from-Source-on-Windows-32-bit-and-64-bit
228+
- https://cowboyprogrammer.org/building-python-wheels-for-windows/
229+
- https://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/
230+
- https://support.enthought.com/hc/en-us/articles/204469260-Building-Python-extensions-with-Canopy
231+
210232
.. _contributing.getting_source:
211233

212234
Making changes
@@ -231,6 +253,7 @@ just checked out. There are two primary methods of doing this.
231253
from your development directory. Thus, you can always be using the development
232254
version on your system without being inside the clone directory.
233255

256+
234257
.. _contributing.documentation:
235258

236259
Contributing to the documentation

0 commit comments

Comments
 (0)