Skip to content

Commit 6da9767

Browse files
committed
Add docstring to PkgConfigExtension.__init__
1 parent 91e1e83 commit 6da9767

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
class PkgConfigExtension(Extension):
1919
'''Extension with lazy properties taken from pkg-config'''
2020
def __init__(self, *args, **kwargs):
21+
'''Behaves like Extension's __init__ but you should not use
22+
include_dirs, library_dirs and libraries arguments.
23+
24+
Extra arguments:
25+
pkg : string
26+
The name of the pkg-config package to use for querying
27+
extra_libraris : [string]
28+
This will be added to the libraries attribute. Optional.
29+
'''
2130
self._pkg = kwargs['pkg']
2231
del kwargs['pkg']
2332
if 'extra_libraries' in kwargs:

0 commit comments

Comments
 (0)