add CPPFLAGS and LDFLAGS support in distuils, bugfix when var passes more than one option

Closed Bitbucket Importer requested to merge bitbucket/declined-pr-161 into branch/default

Created originally on Bitbucket by squeaky

Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.

PyPy's distutils unlike CPython ignores CPPFLAGS and LDFLAGS.

This in turn affects CFFI.

Also if you passed before CFLAGS="-I/a -I/b" it would not work - it was passed as one argument to CC instead of two separate ones leading either to misinterpretation or CC crash. This was bugfixed.

Merge request reports