Message277413
Simple implementation idea:
* add a pkg_config option to Extension()
* run subprocess.call(["pkg-config", self.pkg_config, "--exists"])
* if return value is 0, extend self.extra_compile_args with ["pkg-config", self.pkg_config, "--cflags"] and self.extra_link_args with ["pkg-config", self.pkg_config, "--libs"]
* otherwise print a warning
We could split and parse the output to handle -I, -L and -l in a more elegant way. |
|
Date |
User |
Action |
Args |
2016-09-26 12:06:41 | christian.heimes | set | recipients:
+ christian.heimes, zach.ware, yan12125, Santiago Castro |
2016-09-26 12:06:41 | christian.heimes | set | messageid: <1474891601.51.0.788693746967.issue28207@psf.upfronthosting.co.za> |
2016-09-26 12:06:41 | christian.heimes | link | issue28207 messages |
2016-09-26 12:06:41 | christian.heimes | create | |
|