Author christian.heimes
Recipients Santiago Castro, christian.heimes, yan12125, zach.ware
Date 2016-09-26.12:06:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474891601.51.0.788693746967.issue28207@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-26 12:06:41christian.heimessetrecipients: + christian.heimes, zach.ware, yan12125, Santiago Castro
2016-09-26 12:06:41christian.heimessetmessageid: <1474891601.51.0.788693746967.issue28207@psf.upfronthosting.co.za>
2016-09-26 12:06:41christian.heimeslinkissue28207 messages
2016-09-26 12:06:41christian.heimescreate