Using Wing with Cygwin

Index of All Documentation » How-Tos » How-Tos for Containers »


Wing Pro Screenshot

Wing is a Python IDE that can be used to develop, test, and debug Python code written for cygwin, a Linux/Unix like environment for Microsoft Windows.

Two versions of Wing are appropriate for use with this document: Wing Pro is the full-featured Python IDE for professional developers, and Wing Personal is a free alternative with reduced feature set.

If you do not already have Wing installed, download it now.

This document describes how to configure Wing for Cygwin. To get started using Wing as your Python IDE, please refer to the tutorial in Wing's Help menu or read the Quickstart Guide.

Note: This document was last tested with cygwin 3.6.

Project Configuration

To write and debug code running under cygwin, download and install Wing for Windows on your machine. Wing does not run on cygwin but you can set up Wing for Windows to work with Python code that is running under cygwin.

This is done by creating a project with New Project in the Project menu, and then adding the Windows-side copies of your source files to the project with Add Existing Directory, which is also in the Project menu.

Debugger Configuration

To debug code running on cygwin, follow the instructions for Debugging Externally Launched Code. In this model, you will always launch your Python code from cygwin and not from Wing's menus or toolbar.

When setting this up, use cygwin paths for WINGHOME in wingdbstub.py because this file will be used on the cygwin side.

File Paths

In many cases, it's easiest to configure cygwin pathnames to be equivalent to the Windows pathnames. An example would be to set up /src in cygwin to point to the same directory as \src on Windows, which is src at top level of the main drive, usually c:\src.

If this is not possible, you should be sure to add all the sources you need to work with to your project in Wing. This way, Wing can automatically find all your files and use a hash on the contents of the file to identify which Windows-side files are the same as the cygwin files. See File Location Maps for details.

Related Documents

For more information see: