PBR

Install fails with namespace pkg + data

Bug #1382171 reported by Tom Davis
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PBR
Incomplete
Undecided
Unassigned

Bug Description

If I have a project layout such as,

+ foo/
-- setup.py
-- setup.cfg
+ nspkg/
-- -- __init__.py
-- + pkg/
-- -- __init__.py
-- -- + data/
-- -- -- conf/

And a setup.cfg such as,

[files]
namespace_packages = nspkg
packages = nspkg.pkg

Then running `setup.py install` (or `pip install .`) will result in a failure,

error: can't copy 'nspkg/pkg/data/conf': doesn't exist or not a regular file

This does *not* happen when using a manually-written setup.py

Revision history for this message
Tom Davis (09rp9wq1q1h0lx-tom) wrote :

I should mention it also doesn't happen when running `setup.py develop`, presumably because nothing is being copied.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

In your example, it appears that conf is a directory. If I set up the structure you describe and include a file in that directory it is packaged when I use pbr 0.10.0. When I do not include a file in that directory, the nspkg/pkg/data/conf directory is not included in the sdist, but I don't get any errors installing the package.

Which version of pbr were you using when you encountered the problem?

Changed in pbr:
status: New → Incomplete
Revision history for this message
Robert Collins (lifeless) wrote :

To avoid any ambiguity, could you please attach a tarball which minimally demonstrates the issue? Thanks.

Revision history for this message
Tom Davis (09rp9wq1q1h0lx-tom) wrote :

Robert,

Sorry, I gave up on getting PBR to work months ago. I actually submitted a patch via GitHub for this issue, including an explanation of what the root problem turned out to be. It was automatically closed, however, and I lost interest before making it through the OpenStack contribution document. If the problem hasn't been fixed yet, feel free to use this however you see fit: https://github.com/openstack-dev/pbr/pull/9

Revision history for this message
Allen Riddell (ariddell) wrote :

I think this is being addressed in https://bugs.launchpad.net/pbr/+bug/1530867

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.