Skip to content

Setting up Windows

Min RK edited this page Nov 4, 2015 · 11 revisions

Setting up a Windows dev environment

Recording the steps I use to get a dev VM set up to build Windows bdists for pyzmq. Right now, I'm running this on Windows Server 2012 x64.

Commands assume powershell run as admin.

  1. install chocolatey

  2. choco install atom git git.commandline

  3. choco install python3 python2 python3-x86_32 python2-x86_32

  4. install Python 3.4 manually from Python.org (until there's a python34 package)

  5. choco install windows-sdk-7.0 (py2)

  6. choco install windows-sdk-7.1 (py34, had to remove vc2010 redistributable or it would fail)

  7. choco install VisualStudio2015Community (py35, had to reboot and modify installation to get VC++)

  8. symlinks for paths in choco python:

     cmd /c mklink /d C:\Python27_64 C:\ProgramData\chocolatey\lib\python2\tools
     cmd /c mklink /d C:\Python27 C:\ProgramData\chocolatey\lib\python2-x86_32\tools
     cmd /c mklink /d C:\Python35_64 C:\ProgramData\chocolatey\lib\python3\tools
     cmd /c mklink /d C:\Python35 C:\ProgramData\chocolatey\lib\python3-x86_32\tools
    

At this point, I can build a pyzmq bdist with:

# update everything
choco upgrade all

cmd /k tools/release_windows.bat [upload]
Clone this wiki locally