Skip to content

Setting up Windows

Min RK edited this page Apr 23, 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 8.1 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 SDK 7 (.NET 3.5sp1)

    • first run installs .NET 3.5, requires reboot, then run again
    • uncheck docs and samples
  5. install SDK 7.1 (.NET 4)

    • uncheck samples
  6. symlinks for pattern in choco python:

     cmd /c mklink /d C:\Python27_64 C:\tools\python2
     cmd /c mklink /d C:\Python27 C:\tools\python2-x86_32
     cmd /c mklink /d C:\Python34_64 C:\tools\python3
     cmd /c mklink /d C:\Python34 C:\tools\python3-x86_32
    
  7. install setuptools, pip on Python 2

     $get_pip = (Invoke-WebRequest https://bootstrap.pypa.io/get-pip.py).Content
     echo $get_pip | C:\Python27\Python -
     echo $get_pip | C:\Python27_64\Python -
    

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