| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9d3036d commit 6f3ef30
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,9 +22,10 @@ | |||
| 22 | 22 | ||
| 23 | 23 | def pkgconfig(*packages, **kw): | |
| 24 | 24 | """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 | ||
| 25 | 26 | """ | |
| 26 | 27 | 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) | ||
| 28 | 29 | popen = subprocess.Popen(cmd, shell=True, close_fds=True, stdout=subprocess.PIPE) | |
| 29 | 30 | popen.wait() | |
| 30 | 31 | if popen.returncode != 0: | |
@@ -41,8 +42,8 @@ def pkgconfig(*packages, **kw): | |||
| 41 | 42 | kw[k] = list(set(v)) | |
| 42 | 43 | ||
| 43 | 44 | return kw | |
| 44 | - argsDict = pkgconfig('glib-2.0', 'mono-2') | ||
| 45 | 45 | #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') | ||
| 46 | 47 | ||
| 47 | 48 | clr = Extension('clr', | |
| 48 | 49 | ['src/monoclr/clrmod.c', 'src/monoclr/pynetinit.c'], | |
| Back | FazBrowse Home | New Git URL |
0 commit comments