Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716004 - dev-python/flask has excessive buildtime dependencies
Summary: dev-python/flask has excessive buildtime dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-03 10:02 UTC by July Tikhonov
Modified: 2020-04-04 17:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description July Tikhonov 2020-04-03 10:02:10 UTC
Current dependencies of the latest stable version of Flask are

RDEPEND="dev-python/click[${PYTHON_USEDEP}]
	dev-python/blinker[${PYTHON_USEDEP}]
	dev-python/itsdangerous[${PYTHON_USEDEP}]
	>=dev-python/jinja-2.10[${PYTHON_USEDEP}]
	>=dev-python/werkzeug-0.15[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
	dev-python/setuptools[${PYTHON_USEDEP}]
	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
	test? ( dev-python/pytest[${PYTHON_USEDEP}] )"

Isn't putting ${RDEPEND} in DEPEND excessive? Surely flask will only need werkzeug and friends at runtime. At least, unless USE="test" is enabled. Also, I am not sure about "doc" flag: I tested installing flask with "test" and "doc" disabled.

This makes a difference when installing at alternate root — currently werkzeug and other packages will be installed twice, both at the build and alternate root.
Comment 1 Larry the Git Cow gentoo-dev 2020-04-04 17:04:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5582fc2831f7a0737465a9dcf55096e78ad0337f

commit 5582fc2831f7a0737465a9dcf55096e78ad0337f
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-04-04 05:42:26 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-04-04 17:04:08 +0000

    dev-python/flask: Bump to 1.1.2
    
    Closes: https://bugs.gentoo.org/716004
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/flask/Manifest           |  1 +
 dev-python/flask/flask-1.1.2.ebuild | 52 +++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)