[cfe-commits] [PATCH][clang.py] Add setup.py

Matthieu Monrocq matthieu.monrocq at gmail.com
Sun Aug 26 11:10:37 PDT 2012


On Sun, Aug 26, 2012 at 8:04 PM, Gregory Szorc <gregory.szorc at gmail.com>wrote:

> The attached patch adds a setup.py file for the Python bindings. This
> should facilitate easier installation of the Python bindings (people can
> just run |python setup.py install|). This might also make it easier on
> package maintainers (most package managers have a special mechanism to deal
> with setup.py files).
>
> The file is pretty boilerplate. One open question I have is for the
> version. Is there a file elsewhere in the tree where I can read the version
> number from? I don't really like hard-coding the version in setup.py...
>
> Gregory
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
Regarding the version: when clang is built, the svn version from which the
sources were put together is included in the resulting binary, perhaps that
a similar mechanism for the python version would be possible ?

If you run clang -v, you can get it, so I suppose that exploring from there
(where does -v lead ?) you may be able to find the versions and check if
they are available via the hooks or where they come from.

-- Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120826/5e0edaf7/attachment.html>


More information about the cfe-commits mailing list