[openstack-dev] Cross distribution talks on Friday

Samuel Merritt sam at swiftstack.com
Mon Nov 10 19:27:52 UTC 2014

On 11/1/14, 3:51 PM, Alan Pevec wrote:
>> %install
>> export OSLO_PACKAGE_VERSION=%{version}
>> %{__python} setup.py install -O1 --skip-build --root %{buildroot}
>> Then everything should be ok and PBR will become your friend.
> Still not my friend because I don't want a _build_ tool as runtime dependency :)
> e.g. you don't ship make(1) to run C programs, do you?
> For runtime, only pbr.version part is required but unfortunately
> oslo.version was abandoned.

Swift has an elegant* solution** to this problem that makes PBR into a 
build-time-only dependency.

Take a look at the top-level __init__.py in the Swift source tree: 

* kind of ugly
** hack

More information about the OpenStack-dev mailing list