Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475062 - dev-python/pytables-3.0.0 does not properly pass its PYTHON_COMPAT to dependencies
Summary: dev-python/pytables-3.0.0 does not properly pass its PYTHON_COMPAT to depende...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-06-28 04:55 UTC by Randall Wald
Modified: 2013-07-01 15:32 UTC (History)
1 user (show)

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


Attachments
Patch to pytables-3.0.0.ebuild to make it pass PYTHON_USEDEP to appropriate dependencies (pytables-3.0.0-r1.ebuild.patch,418 bytes, patch)
2013-06-28 04:55 UTC, Randall Wald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Randall Wald 2013-06-28 04:55:24 UTC
Created attachment 352136 [details, diff]
Patch to pytables-3.0.0.ebuild to make it pass PYTHON_USEDEP to appropriate dependencies

The dev-python/pytables-3.0.0 ebuild uses the new Python EAPI=5 system to determine which versions of Python it will build for. Specifically, due to its PYTHON_COMPAT value, it has the following values added to its USE flags: python_targets_python2_5, python_targets_python2_6, python_targets_python2_7, python_targets_python3_2, and python_targets_python3_3. One of pytable's dependencies is dev-python/numexpr, which (in version 2.1, which is the only version currently in portage) also uses the EAPI=5 system for Python versions. However, pytables does not require that numexpr be built for the same versions -- even though, if numexpr lacks a version that pytables requires, pytables will fail to build. To correct this, pytables should specifically depend on the same versions it itself has. The attached .ebuild patch resolves this issue, as well as fixing the dependency on numpy as well (which exhibits the same problem, although I didn't test this to verify that pytables breaks if numpy lacks a required Python version).

TL;DR: pytables-3.0.0 does not pass its PYTHON_COMPAT/PYTHON_USEDEP variable to its dependencies; the attached patch fixes this problem.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-07-01 15:32:36 UTC
+  01 Jul 2013; Justin Lecher <jlec@gentoo.org> pytables-2.4.0-r1.ebuild,
+  pytables-3.0.0.ebuild, metadata.xml:
+  Correct use of python eclass, #475062
+