Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.extension
Commits
b43d0604
Commit
b43d0604
authored
Mar 20, 2014
by
André Anjos
💬
Browse files
Updates the README to include bit about boost pkg configuration
parent
da22093b
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
b43d0604
...
...
@@ -72,16 +72,16 @@ your ``buildout.cfg``. This includes, possibly, dependent projects. Currently,
The
recipe
above
creates
a
new
interpreter
that
hooks
that
package
in
and
builds
the
project
considering
variables
like
``
prefixes
``
into
consideration
.
Python
API
to
pkg
-
config
------------------------
Python
API
to
pkg
-
config
and
Boost
------------------------
----------
This
package
alson
contains
a
set
of
Pythonic
bindings
to
the
popular
pkg
-
config
configuration
utility
.
It
allows
distutils
-
based
setup
files
to
query
for
libraries
installed
on
the
current
system
through
that
command
line
utility
.
library
.
Using
at
your
``
setup
.
py
``
==========================
Using
the
``
pkgconfig
``
class
==========================
===
To
use
this
package
at
your
``
setup
.
py
``
file
,
you
will
need
to
let
distutils
know
it
needs
it
before
importing
it
.
You
can
achieve
this
with
the
following
...
...
@@ -110,3 +110,25 @@ After inclusion, you can just instantiate an object of type ``pkgconfig``::
>>>
zlib
>
'1.2.10'
False
Using
the
``
boost
``
class
=========================
To
use
this
package
at
your
``
setup
.
py
``
file
,
you
will
also
need
the
same
trick
as
with
``
pkgconfig
``::
from
setuptools
import
dist
dist
.
Distribution
(
dict
(
setup_requires
=
'xbob.extension'
))
from
xbob
.
extension
.
boost
import
boost
After
inclusion
,
you
can
just
instantiate
an
object
of
type
``
boost
``::
>>>
boost_pkg
=
boost
(
'>= 1.47'
)
>>>
boost
.
version
#
doctest
:
SKIP
1.50.0
>>>
boost
.
include_directory
#
doctest
:
SKIP
'/usr/include'
>>>
libpath
,
libnames
=
boost
.
libconfig
([
'system'
,
'python'
])
>>>
print
(
libpath
)
#
doctest
:
SKIP
'/usr/lib'
>>>
print
(
libnames
)
#
doctest
:
SKIP
[
'boost_system-mt'
,
'boost_python-mt-py27'
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment