Bug 804039 - Pollutes /usr/lib/python2.7/site-packages/tests with its test suite
Summary: Pollutes /usr/lib/python2.7/site-packages/tests with its test suite
Keywords:
Status: CLOSED DUPLICATE of bug 797813
Alias: None
Product: Fedora
Classification: Fedora
Component: python-paste-script
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-16 11:38 UTC by Daniel Berrangé
Modified: 2016-09-20 02:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-19 14:11:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Berrangé 2012-03-16 11:38:25 UTC
Description of problem:
These private unit tests should not be installed in the RPM, not least because they clash with other (bogusly installed) test files from python-boto. This prevents installation of openstack in Fedora 17 updates-testing

# rpm -ql python-paste-script | grep /usr/lib/python2.7/site-packages/tests
/usr/lib/python2.7/site-packages/tests
/usr/lib/python2.7/site-packages/tests/__init__.py
/usr/lib/python2.7/site-packages/tests/__init__.pyc
/usr/lib/python2.7/site-packages/tests/__init__.pyo
/usr/lib/python2.7/site-packages/tests/appsetup
/usr/lib/python2.7/site-packages/tests/appsetup/__init__.py
/usr/lib/python2.7/site-packages/tests/appsetup/__init__.pyc
/usr/lib/python2.7/site-packages/tests/appsetup/__init__.pyo
/usr/lib/python2.7/site-packages/tests/appsetup/test_make_project.py
/usr/lib/python2.7/site-packages/tests/appsetup/test_make_project.pyc
/usr/lib/python2.7/site-packages/tests/appsetup/test_make_project.pyo
/usr/lib/python2.7/site-packages/tests/test_egg_finder.py
/usr/lib/python2.7/site-packages/tests/test_egg_finder.pyc
/usr/lib/python2.7/site-packages/tests/test_egg_finder.pyo
/usr/lib/python2.7/site-packages/tests/test_logging_config.py
/usr/lib/python2.7/site-packages/tests/test_logging_config.pyc
/usr/lib/python2.7/site-packages/tests/test_logging_config.pyo
/usr/lib/python2.7/site-packages/tests/test_plugin_adder.py
/usr/lib/python2.7/site-packages/tests/test_plugin_adder.pyc
/usr/lib/python2.7/site-packages/tests/test_plugin_adder.pyo
/usr/lib/python2.7/site-packages/tests/test_template_introspect.py
/usr/lib/python2.7/site-packages/tests/test_template_introspect.pyc
/usr/lib/python2.7/site-packages/tests/test_template_introspect.pyo

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Berrangé 2012-03-16 11:48:04 UTC
This problem was missed because of badly designed %files rules:

  %files
  %defattr(-,root,root,-)
  %doc docs/*
  %{python_sitelib}/*

This last line should be rewritten as

  %{python_sitelib}/PasteScript-*
  %{python_sitelib}/paste

So that future RPM updates will error out at build time if bogus files get dropped into the sitelib directory.

Comment 2 Luke Macken 2012-03-19 14:11:17 UTC

*** This bug has been marked as a duplicate of bug 797813 ***


Note You need to log in before you can comment on or make changes to this bug.