On 11/1/14, 3:51 PM, Alan Pevec wrote:
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: https://github.com/openstack/swift/blob/709187b54ff2e9b81ac53977d4283523ce16af38/swift/__init__.py

* kind of ugly
** hack

OpenStack-dev mailing list

Reply via email to