You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Since Boost.Python is a separately-compiled (as opposed to
70
70
<aclass="reference" href="../../../more/getting_started/windows.html#header-only-libraries">header-only</a>) library, its user relies on the services of a
71
71
Boost.Python library binary. The Boost <aclass="reference" href="../../../more/getting_started/index.html">Getting Started Guide</a>
<p>As described in the <aclass="reference" href="http://www.boost.orgdoc/html/bbv2/advanced.html#bbv2.advanced.configuration">Boost.Build reference manual</a>, a file called
134
134
<ttclass="docutils literal"><spanclass="pre">user-config.jam</span></tt> in your home
135
-
directory (<ttclass="docutils literal"><spanclass="pre">%HOMEDRIVE%%HOMEPATH%</span></tt> on Windows) is used to
135
+
directory<aclass="footnote-reference" href="#home-dir" id="id7" name="id7"><sup>7</sup></a> is used to
136
136
describe the build resources available to the build system. You'll
137
137
need to tell it about your Python installation.</p>
<pclass="first admonition-title">Users of Unix-Variant OSes</p>
140
140
<pclass="last">If you are using a unix-variant OS and you ran Boost's
141
141
<ttclass="docutils literal"><spanclass="pre">configure</span></tt> script, it may have generated a
142
-
<ttclass="docutils literal"><spanclass="pre">user-config.jam</span></tt> for you.<aclass="footnote-reference" href="#overwrite" id="id8" name="id8"><sup>4</sup></a> If your <ttclass="docutils literal"><spanclass="pre">configure</span></tt>/<ttclass="docutils literal"><spanclass="pre">make</span></tt> sequence was successful and Boost.Python binaries
142
+
<ttclass="docutils literal"><spanclass="pre">user-config.jam</span></tt> for you.<aclass="footnote-reference" href="#overwrite" id="id9" name="id9"><sup>4</sup></a> If your <ttclass="docutils literal"><spanclass="pre">configure</span></tt>/<ttclass="docutils literal"><spanclass="pre">make</span></tt> sequence was successful and Boost.Python binaries
143
143
were built, your <ttclass="docutils literal"><spanclass="pre">user-config.jam</span></tt> file is probably already
<p>If you have a fairly “standard” python installation for your
149
149
platform, there's very little you need to do to describe it.
150
-
Simply adding</p>
150
+
Simply having</p>
151
151
<preclass="literal-block">
152
152
import toolset : using ;
153
153
using python ;
154
154
</pre>
155
-
<p>to a <ttclass="docutils literal"><spanclass="pre">user-config.jam</span></tt> file in your home directory<aclass="footnote-reference" href="#home-dir" id="id9" name="id9"><sup>6</sup></a>
156
-
should be enough.</p>
155
+
<p>in a <ttclass="docutils literal"><spanclass="pre">user-config.jam</span></tt> file in your home directory<aclass="footnote-reference" href="#home-dir" id="id10" name="id10"><sup>7</sup></a>
156
+
should be enough.<aclass="footnote-reference" href="#user-config-jam" id="id11" name="id11"><sup>6</sup></a></p>
<p>Note that in the examples below, case and <em>especially whitespace</em> are
199
199
significant.</p>
200
200
<ul>
@@ -233,7 +233,7 @@ <h2><a class="toc-backref" href="#id26" id="advanced-configuration-examples" nam
233
233
</pre>
234
234
</li>
235
235
<li><pclass="first">You can set up your user-config.jam so a bjam built under Windows
236
-
can build/test both windows and cygwin python extensions. Just pass
236
+
can build/test both Windows and <aclass="reference" href="http://cygwin.com">Cygwin</a> python extensions. Just pass
237
237
<ttclass="docutils literal"><spanclass="pre"><target-os>cygwin</span></tt> in the <ttclass="docutils literal"><spanclass="pre">condition</span></tt> parameter
238
238
for the cygwin python installation:</p>
239
239
<preclass="literal-block">
@@ -244,12 +244,12 @@ <h2><a class="toc-backref" href="#id26" id="advanced-configuration-examples" nam
244
244
using python : : c:\\cygwin\\bin\\python2.5 : : : <target-os>cygwin ;
245
245
</pre>
246
246
<p>when you put target-os=cygwin in your build request, it should build
247
-
with the cygwin version of python:<aclass="footnote-reference" href="#flavor" id="id11" name="id11"><sup>5</sup></a></p>
247
+
with the cygwin version of python:<aclass="footnote-reference" href="#flavor" id="id13" name="id13"><sup>5</sup></a></p>
248
248
<blockquote>
249
249
<p>bjam target-os=cygwin toolset=gcc</p>
250
250
</blockquote>
251
251
<p>This is supposed to work the other way, too (targeting windows
252
-
python with a cygwin bjam) but it seems as though the support in
252
+
python with a <aclass="reference" href="http://cygwin.com">Cygwin</a> bjam) but it seems as though the support in
253
253
Boost.Build's toolsets for building that way is broken at the
254
254
time of this writing.</p>
255
255
</li>
@@ -271,10 +271,10 @@ <h2><a class="toc-backref" href="#id26" id="advanced-configuration-examples" nam
<tr><tdclass="label"><aclass="fn-backref" href="#id11" name="flavor">[5]</a></td><td>Note that the <ttclass="docutils literal"><spanclass="pre"><target-os>cygwin</span></tt> feature is
328
+
<tr><tdclass="label"><aclass="fn-backref" href="#id13" name="flavor">[5]</a></td><td>Note that the <ttclass="docutils literal"><spanclass="pre"><target-os>cygwin</span></tt> feature is
329
329
different from the <ttclass="docutils literal"><spanclass="pre"><flavor>cygwin</span></tt> subfeature of the <ttclass="docutils literal"><spanclass="pre">gcc</span></tt>
330
330
toolset, and you might need handle both explicitly if you also
<tr><tdclass="label"><aclass="fn-backref" href="#id11" name="user-config-jam">[6]</a></td><td>Create the <ttclass="docutils literal"><spanclass="pre">user-config.jam</span></tt> file if you don't
<tr><tdclass="label"><aclass="fn-backref" href="#id9" name="home-dir">[6]</a></td><td><pclass="first">Create the <ttclass="docutils literal"><spanclass="pre">user-config.jam</span></tt> file if you don't
338
-
already have one. For Windows users, the home directory can
339
-
be found by typing:</p>
344
+
<tr><tdclass="label"><aname="home-dir">[7]</a></td><td><em>(<aclass="fn-backref" href="#id7">1</a>, <aclass="fn-backref" href="#id10">2</a>)</em><p>Windows users, your home directory can be
345
+
found by typing:</p>
340
346
<preclass="literal-block">
341
347
ECHO %HOMEDRIVE%%HOMEPATH%
342
348
</pre>
@@ -350,7 +356,7 @@ <h2><a class="toc-backref" href="#id26" id="advanced-configuration-examples" nam
Generated by <aclass="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <aclass="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
0 commit comments