Boost C++ Libraries: Ticket #6946: bootstrap.sh not compatible with python3. https://svn.boost.org/trac10/ticket/6946 <p> Just tried building boost with python3 support and hit a small snag with bootstrap.sh using invalid syntax. </p> <p> On line 280, the print statement has been removed from python3 so you need to use the print *function* instead, with brackets: </p> <blockquote> <p> PYTHON_ROOT=<code>$PYTHON -c "import sys; print(sys.prefix)"</code> </p> </blockquote> <p> This change does not break compatibility with python2. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6946 Trac 1.4.3 Ralf W. Grosse-Kunstleve Sat, 26 May 2012 22:57:25 GMT component changed https://svn.boost.org/trac10/ticket/6946#comment:1 https://svn.boost.org/trac10/ticket/6946#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">Python</span> → <span class="trac-field-new">Building Boost</span> </li> </ul> Ticket Ralf W. Grosse-Kunstleve Sat, 26 May 2012 23:00:31 GMT owner changed https://svn.boost.org/trac10/ticket/6946#comment:2 https://svn.boost.org/trac10/ticket/6946#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Ralf W. Grosse-Kunstleve</span> to <span class="trac-author">Stefan Seefeld</span> </li> </ul> <p> hi stefan, do you know how to best deal with this problem? </p> Ticket Robert Park <rbpark@…> Sun, 27 May 2012 01:31:09 GMT <link>https://svn.boost.org/trac10/ticket/6946#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6946#comment:3</guid> <description> <p> Sorry, I should clarify: The line of code that I quote in the description is the *fix*, not the problem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ralf W. Grosse-Kunstleve</dc:creator> <pubDate>Sun, 27 May 2012 17:15:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6946#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6946#comment:4</guid> <description> <p> It turns out Stefan checked in the fix already in October last year (<a class="changeset" href="https://svn.boost.org/trac10/changeset/75012" title="Fix Python3 compatibility.">r75012</a>) on the trunk. It still isn't merged into the release branch (the current revision is <a class="changeset" href="https://svn.boost.org/trac10/changeset/78689" title="Merge Boost.Algorithm inspection report changes to release. No ...">r78689</a>). I don't know who is in charge of merging this file from the trunk to the release branch. Stefan? </p> </description> <category>Ticket</category> </item> <item> <author>Jacobo Cabaleiro <jcc@…></author> <pubDate>Wed, 20 Nov 2013 15:25:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6946#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6946#comment:5</guid> <description> <p> I've just built 1.55 under mingw and this is still a problem. </p> <p> <a class="new ticket" href="https://svn.boost.org/trac10/ticket/5677" title="#5677: Patches: Bootstrap fails with python versions 3.1 and up (new)">ticket:5677</a> is a previous report of the same error. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John McGehee</dc:creator> <pubDate>Wed, 11 Mar 2015 22:15:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6946#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6946#comment:6</guid> <description> <p> A workaround is to get the Python root yourself with correct Python 3 syntax and tell bootstrap.py explicitly: </p> <pre class="wiki">python_root=`python -c "import sys; print(sys.prefix)"` ./bootstrap.sh --with-python-root=$python_root </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>James E. King, III</dc:creator> <pubDate>Thu, 26 Oct 2017 13:55:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6946#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6946#comment:7</guid> <description> <p> This was resolved in 1.59.0: </p> <p> <a class="ext-link" href="https://github.com/boostorg/boost/commit/51e693134f5c354f2694fe89d14421c85bfacf31#diff-3af436e6760a0c5f1e3d16a3384853a8"><span class="icon">​</span>https://github.com/boostorg/boost/commit/51e693134f5c354f2694fe89d14421c85bfacf31#diff-3af436e6760a0c5f1e3d16a3384853a8</a> </p> <p> I cannot set the milestone to 1.59.0 however so I am going to leave it unresolved until someone with access can. </p> </description> <category>Ticket</category> </item> </channel> </rss>