On 04/20/2015 08:22 AM, Victor Stinner wrote:
>> I believe Redhat patch it out. I don't think they should need to,
>> since we have explicit knobs for distros to use.
> 
> pbr pulls pip which we don't want in RHEL. Example of patches in RDO:
> 
> https://github.com/redhat-openstack/nova/commit/a19939c8f9a7b84b8a4d713fe3d26949e5664089
> https://github.com/redhat-openstack/python-keystoneclient/commit/e02d529a87aef8aaca0616c8ee81de224bf1f52a
> https://github.com/redhat-openstack/neutron/commit/85302b75362df30270383e3a373e60e81b1b2384
> (well, it's always the same change)
> 
> Can't we enhance pbr to build (source/wheel) distributions of applications 
> which don't depend on pbr? Basically implement these patches in pbr?
> 
> I read somewhere that pkg_resources may also be used to get the version.
> 

You're absolutely correct, here's a quick snippet to get the version as
a string:

    import pkg_resources
    pkg_resources.get_distribution('nova').version

Where, of course, s/nova/any-package-name/

-- 
Ryan Brown / Software Engineer, Openstack / Red Hat, Inc.

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to