2.3.2 Build on Windows

Warning: This documentation is for the future PyQwt-3.8. Check the download page for the latest releases.

  1. Unpack PyQwt-3.8.tar.gz into for instance C:/MyStuff and read README to check out bug fixes and upgrades.
  2. Run
    cd PyQwt-3.8
  3. Edit the file setup_cfg_nt as explained in its comments. Initialize sip_file_dirs correctly!.
    # Start of 'setup_cfg_nt'.
    # A line starting with '#' is a comment.
    # The 'run_sip' command transforms the sip/*.sip files into
    # *.cpp, *.h and *.py files.
    # It requires also the PyQt-*/sip/*.sip files that have been
    # used to build PyQt.
    # The option 'sip_file_dirs' indicate the command 'run_sip'
    # where to find the PyQt-*/sip/*.sip files.
    # If you cannot find those files on your system, see the
    # documentation: 'Prerequisites for Windows'.
    # Running PyQt-win-*-3.8.exe and selecting the SIP tools
    # puts PyQt's sip files in *:\Python23\PyQt\sip
    # If you have rebuilt PyQt from source, uncomment and edit:
    # Local Variables: ***
    # mode: sh ***
    # End: ***
  4. The commands
    python setup.py bdist
    python setup.py bdist_wininst
    will make an installer in the sub-directory dist.

Note: The PyQtDistutils rely on the environment variables QTDIR, TMAKESPEC for Qt-2.x and QMAKESPEC for Qt-3.x.

Note: If you get a message:
sip: Unable to find file "qtmod.sip"
error: command '/usr/bin/sip' failed with exit status 1
the initialization of sip_file_dirs is wrong.

Note: If you are desperate, run:
python setup.py build --force >log.txt
and mail the file log.txt to me.