On Sun, Aug 26, 2012 at 8:04 PM, Gregory Szorc <[email protected]>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
> [email protected]
> 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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to