openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #12603
Re: openstack.common inside swiftclient and RPM
Hi Pete,
On Thu, 2012-05-31 at 17:48 -0600, Pete Zaitcev wrote:
> Hi, Monty:
>
> The python-swiftclient has something that I believe you added:
>
> [zaitcev@lembas python-swiftclient-tip]$ git log swiftclient/openstack/__init__.py
> commit 7df012329f0b22e19f878cee2602407cb23042ef
> Author: Monty Taylor <mordred@xxxxxxxxxxxx>
> Date: Wed May 16 17:30:46 2012 -0400
>
> Add openstack project infrastructure.
>
> Now, I am wondering, why is it necessary to keep this inside the
> swiftclient/ directory?
>
> My problem is that if I do nothing too crazy, the following RPM
> .spec packages the aforementioned directory, too:
>
> %{python_sitelib}/swiftclient
>
> For now I resorted to running this after python setup.py install:
>
> rm -r %{buildroot}%{python_sitelib}/swiftclient/openstack
>
> Still... As an experiement, I moved the openstack/ one level up,
> changed swiftclient.openstack.common to openstack.common in setup.py,
> and everything seems to be working.
It's not clear what problem you're seeing, but projects are intended to
include openstack-common in this way. See the "Incubation" section here:
http://wiki.openstack.org/CommonLibrary
Cheers,
Mark.
Follow ups
References