Skip to content

Setting up Windows

minrk edited this page Oct 30, 2014 · 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 (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | C:\Python27\Python - (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | C:\Python27_64\Python - C:\Python27\Python -m easy_install --upgrade pip C:\Python27_64\Python -m easy_install --upgrade pip

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

# update everything
choco update

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