Bug 608937 - Should beaker Require: python-setuptools, python-paste, and pycryptopp?
Summary: Should beaker Require: python-setuptools, python-paste, and pycryptopp?
Alias: None
Product: Fedora
Classification: Fedora
Component: python-beaker   
(Show other bugs)
Version: 14
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Kyle VanderBeek
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-29 00:25 UTC by Toshio Ernie Kuratomi
Modified: 2011-09-08 07:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-09-08 07:46:34 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to use paste.util.converters instead of bundled copy (1.16 KB, patch)
2010-06-29 00:25 UTC, Toshio Ernie Kuratomi
no flags Details | Diff
use try: except to use paste.util.converters if available (2.16 KB, patch)
2010-06-29 01:05 UTC, Toshio Ernie Kuratomi
no flags Details | Diff

Description Toshio Ernie Kuratomi 2010-06-29 00:25:35 UTC
Created attachment 427534 [details]
Patch to use paste.util.converters instead of bundled copy

Description of problem:
It appears that beaker imports three python libraries that aren't listed in Requires:

pycryptopp is used in beaker/crypto/pycryptopp.py (python-crypto is listed as the second choice and could be used on EPEL-5 where pycryptopp isn't yet available.

python-paste is used in beaker/middleware.py

pkg_resources (from python-setuptools) is used in beaker/cache.py

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

Additional info:

Should be able to add something like this:

Requires: python-setuptools
Requires: python-paste
%if 0%{?fedora}
Requires: pycryptopp
Requires: python-crypto

I looked into this because beaker has a verbatim copy of a file from paste:
beaker/converters.py is a copy of paste/util/converters.py

If paste is already a requirement we should submit something to upstream to use the paste version instead of a bundled copy.  I'll attach a patch that does that.

Comment 1 Luke Macken 2010-06-29 00:33:39 UTC
Adding those additional dependencies and patch is fine with me.  It is probably something we want to send upstream as well.

Comment 2 Toshio Ernie Kuratomi 2010-06-29 01:02:35 UTC
Briefly talked to Ben and he thinks being able to work without setuptools and paste installed is an advantage.  The imports are inside try: except blocks so even if the code loses some functionality, it can still work.

So I'll add pycryptopp but not the others.

Makes me wonder what to do about the one copied file.. I could either put it in a try: except or not worry about it.

Comment 3 Toshio Ernie Kuratomi 2010-06-29 01:05:33 UTC
Created attachment 427538 [details]
use try: except to use paste.util.converters if available

Here's what the patch would look like if we try paste.util.converters first and fallback to the bundled copy.  Not sure if it makes sense to apply or not.

Comment 4 Toshio Ernie Kuratomi 2010-06-29 18:11:36 UTC
I've opened a bug with the patch upstream:


Comment 5 Bug Zapper 2010-07-30 12:17:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.

More information and reason for this action is here:

Comment 6 Toshio Ernie Kuratomi 2011-09-08 07:46:34 UTC
This is done upstream wouldn't take everything but our version is not bundling and is requiring the necessary packages.

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