setup.py installs files in site-packages/doc

Bug #921054 reported by Ralf Haferkamp
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Dolph Mathews

Bug Description

After installing keystone (current master) with "./setup.py install --prefix=/usr" on my openSUSE 12.1 system I endup with the "examples", "tools" and "doc" subdirs installed in /usr/lib/python2.7/site-packages, which is a bit unexpected. I'd expect them either to be not installed at all or at least show up in the /usr/lib/python2.7/site-packages/keystone subdirectory (or even better in /usr/share/doc).

Removing the __init__.py file from the above directory before running setup.py seems to resolve the problem, though I am unsure if that really is the correct fix (I guess they where added for a reason, which I just havn't figured out yet).

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/3423

Revision history for this message
Dolph Mathews (dolph) wrote :

Those directories were mistakenly treated as packages at some point; they can be safely removed.

Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
importance: Undecided → Low
milestone: none → essex-3
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/3422
Committed: http://github.com/openstack/keystone/commit/a86a661b2900379139c363dae22aec50c5906da7
Submitter: Jenkins
Branch: master

commit a86a661b2900379139c363dae22aec50c5906da7
Author: Dolph Mathews <email address hidden>
Date: Wed Jan 25 13:35:32 2012 -0600

    Removing __init__ from non-packages (bug 921054)

    These were mistakenly treated as packages long ago.

    Change-Id: I975b7c1cf310b6ca482a5a32c615ecab7fc9517f

Changed in keystone:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (milestone-proposed)

Reviewed: https://review.openstack.org/3423
Committed: http://github.com/openstack/keystone/commit/44075e145fdf8e8cada02ca95282ac2706b0dd19
Submitter: Jenkins
Branch: milestone-proposed

commit 44075e145fdf8e8cada02ca95282ac2706b0dd19
Author: Dolph Mathews <email address hidden>
Date: Wed Jan 25 13:35:32 2012 -0600

    Removing __init__ from non-packages (bug 921054)

    These were mistakenly treated as packages long ago.

    Change-Id: I975b7c1cf310b6ca482a5a32c615ecab7fc9517f

Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.