Commit Graph
18 Commits
Author SHA1 Message Date
Michał Górny f202e56a0e python-r1.eclass: Introduce python_gen_impl_dep
Add a python_gen_impl_dep() that serves the purpose of generating custom
dependencies on the Python interpreter (like PYTHON_DEPS). The function
provides ability to request dependencies with another USE dependency
string (different than global PYTHON_REQ_USE) and limit the dependencies
to subset of supported implementations.
2015-12-31 15:52:03 +01:00
Zac Medico a3612b0a9d python-r1.eclass: _python_obtain_impls: handle local PYTHON_COMPAT
See local PYTHON_COMPAT setting in _distutils-r1_run_common_phase.

Fixes: 33380ad5e1 ("python*-r1.eclass: Commonize PYTHON_COMPAT processing, cache the result")
2015-12-22 22:19:01 -08:00
Michał Górny 33380ad5e1 python*-r1.eclass: Commonize PYTHON_COMPAT processing, cache the result
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.
2015-12-22 23:12:23 +01:00
Michał Górny 01e902405d python*-r1.eclass: Replace non-portable use of 'declare -g'
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.
2015-12-11 23:42:33 +01:00
Mike Gilbert d296b5daa5 Revert "python*-r1.eclass: Replace non-portable use of 'declare -g'"
This reverts commit 44d3345d82.

This was triggering "No supported implementation in PYTHON_COMPAT.".
2015-12-11 17:26:44 -05:00
Michał Górny 44d3345d82 python*-r1.eclass: Replace non-portable use of 'declare -g'
Replace uses of 'declare -g -r' (bash-4.2+) with 'readonly'. Reported
by Arfrever.
2015-12-11 22:27:19 +01:00
Michał Górny 9f77bcd471 python-r1.eclass: Mark eclass-generated variables read-only 2015-12-09 21:41:16 +01:00
Michał Górny 300f6e46c9 python-r1.eclass: python_gen_cond_dep(), rename local PYTHON_USEDEP
Rename local PYTHON_USEDEP variable to avoid collisions with read-only
global variable.
2015-12-09 21:41:16 +01:00
Michał Górny 3169ff8e8a python-r1.eclass: Unset local functions after use 2015-12-09 21:41:16 +01:00
Michał Górny b60ce06435 python-r1.eclass: Unset global-setting function after use 2015-12-09 21:41:16 +01:00
Michał Górny ffb4e12e91 python-r1.eclass: Enable EAPI 6 2015-11-28 20:09:06 +01:00
Michał Górny 9c6a8a3461 python-r1.eclass: Fix missing explicit eutils inherit for EAPI < 6 2015-11-28 20:09:06 +01:00
Michał Górny 5b5467e479 python-r1.eclass: Ban python_export_best in EAPI 6 2015-11-28 20:09:06 +01:00
Michał Górny 5a37c1bee7 python-r1.eclass: Ban python_parallel_foreach_impl in EAPI 6 2015-11-28 20:09:06 +01:00
Mike Gilbert 4d18149d91 python-r1.eclass: Ensure that PYTHON_COMPAT is an array
As suggested by Arfrever.

Bug: https://bugs.gentoo.org/564258
2015-11-07 20:30:52 -05:00
Justin Lecher c35ee2746e eclass: Exchange obsolete and depreacted Python ABIs in documentation
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2015-09-03 08:06:22 +02:00
Mike Frysinger a3dac837fc eclass: fix various doc errors #537392 2015-08-14 00:05:33 -04:00
Robin H. Johnson 56bd759df1 proj/gentoo: Initial commit
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
2015-08-08 17:38:18 -07:00