summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Print path to ebuild in deprecation warning for NEED_PYTHON variable.Arfrever Frehtes Taifersar Arahesis2010-07-181-67/+35
| | | | Disable colors by default (bug #309057).
* Deprecate NEED_PYTHON variable.Arfrever Frehtes Taifersar Arahesis2010-07-171-210/+349
| | | | | | | | | | | | | Require python_pkg_setup() in EAPI >=4. Ensure that sanity checks in python_pkg_setup() and python_set_active_version() are performed for binary packages. Improve handling of arguments in some functions. Support flags specific to given Python ABIs. Improve sanity checks in some functions. Improve error messages in some functions. Support --base-path option in python_get_includedir(), python_get_libdir(), python_get_sitedir() and python_get_library(). Allow multiple paths in argument of --PYTHONPATH option of python_execute_nosetests(), python_execute_py.test() and python_execute_trial(). Simplify python_mod_optimize() and python_mod_cleanup() in EAPI >=4. Clean unneeded code in python_version(), python_mod_exists() and python_tkinter_exists().
* Fix deletion of empty parent directories in _python_clean_compiled_modules().Arfrever Frehtes Taifersar Arahesis2010-05-291-4/+6
|
* Fix deprecation warning in python_mod_compile().Arfrever Frehtes Taifersar Arahesis2010-05-251-11/+13
|
* Improve python_pkg_setup().Arfrever Frehtes Taifersar Arahesis2010-05-251-74/+146
| | | | | | | | | | Improve python_clean_installation_image(). Rename validate_PYTHON_ABIS() to _python_calculate_PYTHON_ABIS(). Delete sanity check in python_set_active_version() (bug #321057). Improve error message in PYTHON(). Improve _python_clean_compiled_modules(). Print deprecation warnings when python_mod_optimize() / python_mod_cleanup are called without paths to Python modules. Print deprecation warning in python_mod_compile().
* Fix handling of PYTHON_USE_WITH with more than 2 USE flags.Arfrever Frehtes Taifersar Arahesis2010-05-171-307/+476
| | | | | | | | | | | | Improve python_pkg_setup(). Rename python_clean_sitedirs() to python_clean_installation_image(). Improve python_clean_installation_image(). Improve handling of -- option in phase functions. Add check for dev-lang/python in validate_PYTHON_ABIS() (bug #319651). Improve error message in python_copy_sources(). Improve python_set_active_version(). Improve error messages in PYTHON(). Support PEP 3147 in python_mod_optimize(), python_mod_cleanup() and python_mod_compile().
* Set GENTOO_PYTHON_PROCESS_NAME environmental variable in wrapper scripts ↵Arfrever Frehtes Taifersar Arahesis2010-03-261-1/+2
| | | | generated by python_generate_wrapper_scripts(), because Python process now unsets this variable at the beginning of execution of wrapper scripts, but this variable should be set also at the beginning of execution of target scripts.
* Fix handling of PYTHON_USE_WITH_OPT in python_pkg_setup().Arfrever Frehtes Taifersar Arahesis2010-03-201-79/+147
| | | | | | | Improve error messages in some functions. Delete python_set_build_dir_symlink(). Fix wrapper scripts generated by python_generate_wrapper_scripts(). Improve deprecation warnings in python_version(), python_mod_exists() and python_tkinter_exists().
* Improve phase functions.Arfrever Frehtes Taifersar Arahesis2010-03-131-49/+90
| | | | | | | | | | Simplify and improve validate_PYTHON_ABIS(). Fix handling of ${S} ending in '/' in python_copy_sources() (bug #307943). Improve python_generate_wrapper_scripts(). Improve python_convert_shebangs(). Add python_clean_sitedirs(). Simplify python_mod_cleanup(). Improve deprecation warnings in python_version(), python_mod_exists() and python_tkinter_exists().
* Using terminal colors to modify eerror output is not allowed. Switch to ↵Petteri Räty2010-03-121-19/+13
| | | | using einfo for deprecated functions so that they don't get logged by default for users.
* Ensure that python_pkg_setup() is used only in pkg_setup().Arfrever Frehtes Taifersar Arahesis2010-03-041-31/+101
| | | | | | | | Improve handling of PYTHON_USE_WITH / PYTHON_USE_WITH_OR. Support --full option of python_get_version(). Optimize python_get_version(). Support hooks in python_execute_nosetests(), python_execute_py.test() and python_execute_trial(). Print deprecation warnings in python_version(), python_mod_exists() and python_tkinter_exists().
* Deprecate python_mod_exists().Arfrever Frehtes Taifersar Arahesis2010-02-281-20/+25
|
* Define phase functions always in packages supporting installation for ↵Arfrever Frehtes Taifersar Arahesis2010-02-281-168/+171
| | | | | | | | | | | | multiple versions of Python. Export phase functions when PYTHON_DEFINE_DEFAULT_FUNCTIONS is defined. Extract sanity checks from validate_PYTHON_ABIS() to _python_initial_sanity_checks() and _python_final_sanity_checks(). Support --final-ABI option of python_execute_function(). Extract setting of color variables to _python_set_color_variables(). Simplify python_copy_sources() by not supporting --no-link option and always creating real copies of files. Call _python_initial_sanity_checks() and _python_final_sanity_checks() in python_set_active_version(). Simplify PYTHON() by not supporting --active option. Deprecate python_tkinter_exists().
* Depend on >=app-admin/eselect-python-20091230, which allows to use --ABI ↵Arfrever Frehtes Taifersar Arahesis2010-02-141-15/+11
| | | | | | | | option of `eselect python show`. Set PYTHON_SCRIPT_NAME variable in wrapper scripts generated by python_generate_wrapper_scripts(). Simplify PYTHON() by using of --ABI option of `eselect python show`. Fix checks for Jython and improve messages in python_mod_optimize().
* Add initial support for Jython.Arfrever Frehtes Taifersar Arahesis2010-02-111-130/+291
| | | | | | | | Improve dependencies generated by _parse_PYTHON_DEPEND(). Fix and improve python_pkg_setup(). Ensure that python_set_active_version() cannot be used in ebuilds of packages supporting installation for multiple versions of Python. Add _PYTHON_ABI_EXTRACTION_COMMAND, _python_get_implementation(), python_get_implementation() and python_get_implementational_package(). Improve python_execute_nosetests(), python_execute_py.test() and python_execute_trial().
* Support EAPI="3".Arfrever Frehtes Taifersar Arahesis2010-02-021-92/+546
| | | | | | | | | | | | | | | | Define _PYTHON2_SUPPORTED_VERSIONS and _PYTHON3_SUPPORTED_VERSIONS to avoid code duplication. Support PYTHON_DEPEND. Disallow using of NEED_PYTHON in EAPI >=3. Use prefix variables (bug #302525). Fix handling of -- option in some functions. Ensure that python_execute_function() isn't called by a function, which is called by python_execute_function(). Set PYTHON_REQUESTED_ACTIVE_VERSION in python_set_active_version(). Add python_get_library() and python_get_version(). Use PYTHON() in python_mod_exists() and python_tkinter_exists(). Support Python 3 in python_tkinter_exists(). Support PYTHON_TEST_VERBOSITY. Add python_execute_nosetests(), python_execute_py.test() and python_execute_trial(). Disallow using of python_version() in EAPI >=3.
* Update EAPI checks.Arfrever Frehtes Taifersar Arahesis2010-01-151-52/+103
| | | | | | | Add support for -f / --final-ABI option of python_get_includedir(), python_get_libdir() and python_get_sitedir(). Optimize calls to PYTHON() in python_mod_optimize() and python_mod_compile(). Delete __python_eclass_test(). Merge __python_version_extract() with python_version().
* Define functions in more logical order.Arfrever Frehtes Taifersar Arahesis2010-01-141-436/+460
|
* Disable has_version() checks for Python implementations (bug #300579).Arfrever Frehtes Taifersar Arahesis2010-01-111-34/+44
| | | | Improve some messages.
* Ensure that python.eclass cannot be used with EAPIs, in which API of ↵Arfrever Frehtes Taifersar Arahesis2010-01-101-63/+64
| | | | | | | | | | | python.eclass has not been yet established. >=app-shells/bash-3.2 is now required by PMS, so DEPEND does not need to explicitly specify it. Add support for -A / --active option of PYTHON(). Rename --only-ABI option to --ABI. Print more detailed error messages in validate_PYTHON_ABIS() (bug #298107). Support symlinks to wrapper scripts generated by python_generate_wrapper_scripts(). Do not use python_version(). Use $(PYTHON -A) / $(PYTHON -A --ABI) instead of ${PYVER}. Fix python_mod_optimize() and python_mod_cleanup() for packages not supporting installation for multiple versions of Python in EAPI >=3.
* Update EAPI checks. Add support for -2, -3, --only-ABI and --final-ABI ↵Arfrever Frehtes Taifersar Arahesis2009-12-231-26/+283
| | | | options of PYTHON(). Add python_set_active_version(). Add python_generate_wrapper_scripts().
* Support --source-dir option of python_execute_function().Arfrever Frehtes Taifersar Arahesis2009-11-221-4/+16
|
* Use brighter colors in python_mod_cleanup() (bug #293966).Arfrever Frehtes Taifersar Arahesis2009-11-221-3/+3
|
* Fix support for non-multilib profiles in PYTHON(). Print additional data in ↵Arfrever Frehtes Taifersar Arahesis2009-11-151-5/+11
| | | | validate_PYTHON_ABIS() when EPYTHON variable isn't respected.
* Make PYTHON() support multilib systems. Improve output of ↵Arfrever Frehtes Taifersar Arahesis2009-11-151-34/+60
| | | | python_convert_shebangs(). Support passing of regular files to python_mod_cleanup(). Improve output of python_mod_cleanup().
* Optimize validate_PYTHON_ABIS(). Add python_convert_shebangs(). Remove ↵Arfrever Frehtes Taifersar Arahesis2009-10-111-25/+96
| | | | incomplete workaround for older versions of Portage in python_pkg_setup().
* Add the check to ensure that Python wrapper is configured to use the same ↵Arfrever Frehtes Taifersar Arahesis2009-10-021-3/+18
| | | | version of Python as /usr/bin/python2 or /usr/bin/python3. Add workaround in python_pkg_setup() for older versions of Portage not supporting Python 3.
* Print a warning when Python 2 or Python 3 is explicitly disabled.Arfrever Frehtes Taifersar Arahesis2009-10-021-5/+22
|
* Automatically enable Python 2 and Python 3 if no version has been explicitly ↵Arfrever Frehtes Taifersar Arahesis2009-10-021-45/+104
| | | | enabled. Improve python_pkg_setup().
* Improve handling of directory stack in python_execute_function().Arfrever Frehtes Taifersar Arahesis2009-09-181-7/+20
|
* Improve handling of directory stack in python_execute_function().Arfrever Frehtes Taifersar Arahesis2009-09-111-2/+12
|
* Add support for '--' option in some functions. Ensure that appropriate ↵Arfrever Frehtes Taifersar Arahesis2009-09-091-7/+40
| | | | Python version is installed in validate_PYTHON_ABIS(). Add support for '--no-link' option in python_copy_sources().
* Improve validate_PYTHON_ABIS(). Improve handling of test failures in ↵Arfrever Frehtes Taifersar Arahesis2009-09-051-8/+10
| | | | python_execute_function().
* Improve validate_PYTHON_ABIS() and python_execute_function().Arfrever Frehtes Taifersar Arahesis2009-08-311-4/+11
|
* Improve validate_PYTHON_ABIS().Arfrever Frehtes Taifersar Arahesis2009-08-311-14/+27
|
* Ensure that defined functions are passed to python_execute_function(). Add ↵Arfrever Frehtes Taifersar Arahesis2009-08-291-5/+26
| | | | PYTHON_DEFINE_DEFAULT_FUNCTIONS variable.
* Update dependencies. Add more sanity checks. Improve python_execute_function().Arfrever Frehtes Taifersar Arahesis2009-08-281-21/+42
|
* Remove unused python_makesym() function.Arfrever Frehtes Taifersar Arahesis2009-08-151-11/+2
|
* Fix PYTHON_USE_WITH to work properly with EAPI 0.Petteri Räty2009-08-151-2/+2
|
* Small updates.Arfrever Frehtes Taifersar Arahesis2009-08-141-12/+12
|
* Don't include needless '/' characters before $(python_get_sitedir). Don't ↵Arfrever Frehtes Taifersar Arahesis2009-08-131-17/+18
| | | | try to find *.py[co] files in directories already removed due to being empty. Display messages about purging of *.py[co] files only once for each pair of *.py[co] files. Display messages about removing of empty directories.
* Prints errors occuring during running ↵Arfrever Frehtes Taifersar Arahesis2009-08-071-10/+16
| | | | python_mod_compile()/python_mod_optimize() only once. Improve python_execute_function().
* Rename get_python() to PYTHON(). Set BUILDDIR in python_execute_function().Arfrever Frehtes Taifersar Arahesis2009-08-051-11/+15
|
* Update dependency on app-admin/eselect-python. Update check for /usr/bin/python.Arfrever Frehtes Taifersar Arahesis2009-08-041-5/+5
|
* Add --default-function option of python_execute_function().Arfrever Frehtes Taifersar Arahesis2009-08-031-7/+48
|
* Add check to ensure that /usr/bin/python and /usr/bin/python-config are scripts.Arfrever Frehtes Taifersar Arahesis2009-08-021-1/+9
|
* Add initial support for installation of Python modules for multiple Python ↵Arfrever Frehtes Taifersar Arahesis2009-08-011-89/+442
| | | | versions.
* Add support for PYTHON_USE_WITH* variablesPetteri Räty2009-05-271-2/+77
|
* Bug #244946 - Use different syntax to pipe find output into while loops insideZac Medico2008-10-301-6/+6
| | | | | | | | | | python_mod_cleanup(), as a workaround for a bug in <bash-3.2 which causes incorrect saving of the environment when < <(find ...) syntax is used. The bug causes bash to die when attempting to source the resulting environment file. A similar issue has affected eutils.eclass in the past, triggering bug #215340. Also fix inverted argument validation logic inside python_mod_exists(), broken since version 1.47. Thanks to zlin for reporting.
* Don't call python_version in python_{en,dis}able_pyc because they may be ↵Ali Polatel2008-10-271-13/+5
| | | | called in global scope.