views:

416

answers:

1

Hello All,

I can't seem to build boost::python correctly on my Windows 7 64Bit machine. It's vanilla 32bit python 2.6.4 in the c:\Python26 directory.

Pastebin is here of the debug build output : http://pastebin.com/m7d70f13e

Cheers,

Al

A: 

On IRC, we have found the following procedure fixes the problem:

  1. Open tools/build/v2/tools/python.jam
  2. There, locate the following code:

    if [ version.check-jam-version 3 1 17 ] || ( [ os.name ] != NT )
    {
        # Prior to version 3.1.17 Boost Jam's SHELL command did not support
        # quoted commands correctly on Windows. This means that on that
        # platform we do not support using a Python command interpreter
        # executable whose path contains a space character.
        python-cmd = \"$(python-cmd)\" ;
    }
    
  3. Remove that code block completely.

I'll create an issue in Boost issue tracker and investigate this.

Vladimir Prus