summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* python-single-r1.eclass: Allow using PYTHON_USEDEP againMichał Górny2020-04-141-8/+14
| | | | | | | | | Instead of requiring people to type PYTHON_MULTI_USEDEP, permit shorter form of PYTHON_USEDEP. This does not restore the old behavior but improves consistency between eclasses that was broken by python-single-r1 API changes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Mark python_export privateMichał Górny2020-03-221-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Make python_wrapper_setup privateMichał Górny2020-03-221-2/+2
| | | | | | | | This function was never meant to be a part of the public API. Correct the mistake by renaming it to _python_wrapper_setup(), and adding a QA warning under the old name. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Report impl used by python_setupMichał Górny2020-03-051-0/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*-r1.eclass, distutils-r1.eclass: Link to Python GuideMichał Górny2020-03-051-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Remove unused PYTHON_TARGETSMichał Górny2020-02-101-27/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Remove deprecated PYTHON_USEDEP APIMichał Górny2020-02-101-110/+16
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*-r1.eclass: Update examples for virtual/pypy removalMichał Górny2019-12-301-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Revert "Remove deprecated PYTHON_USEDEP..."Michał Górny2019-12-071-13/+109
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Revert "Remove unused PYTHON_TARGETS"Michał Górny2019-12-071-8/+27
| | | | | | Pushed too many commits. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Remove unused PYTHON_TARGETSMichał Górny2019-12-071-27/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Remove deprecated PYTHON_USEDEP APIMichał Górny2019-12-071-109/+13
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Use new-style flags for python-exec depMichał Górny2019-12-071-7/+8
| | | | | | | Depend on PYTHON_TARGETS directly in dev-lang/python-exec dep, instead of relying on old-style PYTHON_USEDEP. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Introduce PYTHON_{SINGLE,MULTI}_USEDEP APIMichał Górny2019-12-071-16/+93
| | | | | | | | | | | | | Introduce a new API that replaces PYTHON_USEDEP with PYTHON_SINGLE_USEDEP variable and PYTHON_MULTI_USEDEP placeholder. The former can be used directly (or via python_gen_cond_dep) when depending on other python-single-r1 packages, the latter can be used via python_gen_cond_dep when depending on python-r1 packages. Long term, the new API will enable us to remove redundant PYTHON_TARGETS flags from python-single-r1 packages. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*r1.eclass: Remove python-exec:0 leftoverMichał Górny2019-12-071-5/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*r1.eclass: Reliably allow empty <pattern>s to gen funcsMichał Górny2019-12-071-5/+4
| | | | | | | | | Reliably allow empty pattern lists (equivalent to no restrictions) in all pattern-based generator functions, notably python_gen_cond_dep. Previously, only some of the functions accepted them while others failed via _python_impl_matches function. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Restore PYTHON_SINGLE_TARGET for one implMichał Górny2019-12-071-94/+49
| | | | | | | | | | | | | | Undo the hack that removes PYTHON_SINGLE_TARGET (in favor of plain PYTHON_TARGETS) when the package supports only one target. Instead, output both kinds of flags consistently for all packages, and use IUSE defaults to enable them when only one interpreter is supported. This should give similar end results without creating unnecessary differences between ebuilds with one and multiple implementations. It will make future API changes easier, as well as simplify tooling used to detect eclass type. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*-r1.eclass: Deprecate python_gen_usedepMichał Górny2019-12-071-16/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | Deprecate python_gen_usedep() in favor of python_gen_cond_dep(). The latter is a newer API that generates full USE-conditional blocks rather than pure USE-dependency strings. As such, it can replace all uses of the former, and is safer to use in general. In particular: dev-python/foo[$(python_gen_usedep -2)] dev-python/bar[$(python_gen_usedep -2)] installs the dependency (with no implementation match enforced) even if there's no python2 implementation enabled, while: $(python_gen_cond_dep ' dev-python/foo[${PYTHON_USEDEP}] dev-python/bar[${PYTHON_USEDEP}] ' -2) installs it only if there's at least one implementation requiring it. Since the functions are used in global scope only, a deprecation warning is emitted only once, during the sourcing for pkg_setup phase. This avoids having it output during metadata cache regeneration. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: add @SUPPORTED_EAPISMichał Górny2018-08-151-0/+1
|
* python-single-r1.eclass: Enable EAPI 7 (no changes)Michał Górny2018-05-071-2/+2
|
* python-single-r1.eclass: Document new pattern supportMichał Górny2017-05-161-2/+23
|
* python-single-r1.eclass: python_gen_impl_dep, use _python_impl_matches()Michał Górny2017-05-161-8/+5
|
* python-single-r1.eclass: python_gen_cond_dep, use _python_impl_matches()Michał Górny2017-05-161-15/+11
|
* python-single-r1.eclass: python_gen_useflags, use _python_impl_matches()Michał Górny2017-05-161-8/+4
|
* python-single-r1.eclass: python_gen_usedep, use _python_impl_matches()Michał Górny2017-05-161-11/+7
|
* python-single-r1.eclass: Add integrity checks for globalsMichał Górny2017-03-081-6/+30
|
* python-single-r1.eclass: Refactor global setter to use locals, NFCMichał Górny2017-03-081-8/+12
|
* python-single-r1.eclass: Remove stale EAPI=4 branch in globalsMichał Górny2017-03-081-6/+2
|
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* python-single-r1.eclass: Always output use-cond in PYTHON_DEPSMichał Górny2017-02-191-1/+1
| | | | | | | | Output a USE conditional in PYTHON_DEPS even when using only a single target. While this does not make a strict difference since the target flag is in REQUIRED_USE anyway, it results in more unified output and makes it easier to catch mistakes if someone plays with the eclass in the future.
* python-single-r1.eclass: Remove EAPI=4 exceptionsMichał Górny2017-02-171-21/+1
|
* python-single-r1.eclass: drop stray '}' in example docstringSergei Trofimovich2016-11-051-1/+1
|
* python-single-r1.eclass: Add python_gen_impl_dep, alike in python-r1Michał Górny2015-12-311-0/+58
|
* python-single-r1.eclass: Support PYTHON_COMPAT_OVERRIDEMichał Górny2015-12-221-0/+36
|
* python-single-r1.eclass: Fix python_gen_* w/ single PYTHON_COMPAT implMichał Górny2015-12-221-4/+16
| | | | | | | Fix python_gen_useflags() and python_gen_cond_dep() to output correct flag name when only a single implementation is listed in PYTHON_COMPAT. In this case, the PYTHON_SINGLE_TARGET flags are not emitted and PYTHON_TARGETS are used directly instead.
* python*-r1.eclass: Commonize PYTHON_COMPAT processing, cache the resultMichał Górny2015-12-221-44/+17
| | | | | | | | | Introduce a common _python_set_impls function in python-utils-r1.eclass that validates and processes PYTHON_COMPAT, then stores the result in _PYTHON_SUPPORTED_IMPLS and _PYTHON_UNSUPPORTED_IMPLS variables. Reuse those variables in all python-r1 suite eclasses, effectively reducing code duplication and providing cache for repeated implementation support checks.
* python*-r1.eclass: Replace non-portable use of 'declare -g'Michał Górny2015-12-111-2/+2
| | | | | | Replace uses of 'declare -g -r' (bash-4.2+) with 'readonly'. Reported by Arfrever. This time use split assignments followed by readonly calls since combined calls work unreliably.
* Revert "python*-r1.eclass: Replace non-portable use of 'declare -g'"Mike Gilbert2015-12-111-1/+1
| | | | | | This reverts commit 44d3345d828af162b2fbfd623dd8f0d7ac4ae2f9. This was triggering "No supported implementation in PYTHON_COMPAT.".
* python*-r1.eclass: Replace non-portable use of 'declare -g'Michał Górny2015-12-111-1/+1
| | | | | Replace uses of 'declare -g -r' (bash-4.2+) with 'readonly'. Reported by Arfrever.
* python-single-r1.eclass: Mark eclass-generated variables read-onlyMichał Górny2015-12-091-1/+2
|
* python-single-r1.eclass: python_gen_cond_dep(), rename local PYTHON_USEDEPMichał Górny2015-12-091-2/+2
| | | | | Rename local PYTHON_USEDEP variable to avoid collisions with read-only global variable.
* python-single-r1.eclass: Unset global-setting function after useMichał Górny2015-12-091-0/+1
|
* python-single-r1.eclass: Enable EAPI=6, no changes neededMichał Górny2015-11-281-1/+1
|
* python-r1.eclass: Ensure that PYTHON_COMPAT is an arrayMike Gilbert2015-11-071-0/+3
| | | | | | As suggested by Arfrever. Bug: https://bugs.gentoo.org/564258
* eclass: Exchange obsolete and depreacted Python ABIs in documentationJustin Lecher2015-09-031-11/+16
| | | | Signed-off-by: Justin Lecher <jlec@gentoo.org>
* eclass: fix various doc errors #537392Mike Frysinger2015-08-141-1/+1
|
* proj/gentoo: Initial commitRobin H. Johnson2015-08-081-0/+468
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed