Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f3ef30

Browse files
author
Barton Cline
committed
# Mono-2 & glib-2 from current repo pulls referenced via pkg info #
1 parent 9d3036d commit 6f3ef30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonnet/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222

2323
def pkgconfig(*packages, **kw):
2424
"""From http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502261
25+
XXX cmd = "export PKG_CONFIG_PATH=/opt/mono-2.8/lib/pkgconfig:... early 2011
2526
"""
2627
flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'}
27-
cmd = "export PKG_CONFIG_PATH=/opt/mono-2.8/lib/pkgconfig:/lib/pkgconfig; pkg-config --libs --cflags %s" % ' '.join(packages)
28+
cmd = "export PKG_CONFIG_PATH=/lib/pkgconfig; pkg-config --libs --cflags %s" % ' '.join(packages)
2829
popen = subprocess.Popen(cmd, shell=True, close_fds=True, stdout=subprocess.PIPE)
2930
popen.wait()
3031
if popen.returncode != 0:
@@ -41,8 +42,8 @@ def pkgconfig(*packages, **kw):
4142
kw[k] = list(set(v))
4243

4344
return kw
44-
argsDict = pkgconfig('glib-2.0', 'mono-2')
4545
#argsDict['include_dirs'] += ['/opt/mono-2.8/include','/include:usr/include','/usr/include/glib-2.0','/usr/lib/glib-2.0/include']
46+
argsDict = pkgconfig('glib-2.0', 'mono-2')
4647

4748
clr = Extension('clr',
4849
['src/monoclr/clrmod.c', 'src/monoclr/pynetinit.c'],

0 commit comments

Comments
 (0)