aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* patom: new commandArthur Zamarin2022-10-141-0/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* move pshowkw to `pkgdev showkw`Tim Harder2021-03-311-1/+0
|
* drop external filter-env scriptTim Harder2019-08-101-1/+0
| | | | | | The bash side calls filter_env via IPC now so this script is mostly pointless. It could be much more useful if it was reimplemented as a native bash plugin that outputted a filtered env dump directly.
* pshowkw: initial implementation of an eshowkw alternativeTim Harder2019-01-171-0/+1
| | | | Fixes #45
* fix running scripts in the repoTim Harder2017-09-2310-10/+10
|
* pclean: initial implementationTim Harder2016-02-281-0/+1
| | | | | | | This currently supports distfiles, binpkgs, and tmpfiles. Config file support and more tests coming later. Fixes #163.
* move dist modules back into snakeoilTim Harder2015-08-049-9/+9
| | | | | The setup_requires attribute for setuptools should work well enough to pull in snakeoil before the setup script is run.
* simplify the wrapper script functionalityTim Harder2015-07-2611-68/+9
| | | | | | | | | | | | | | This rids us of the pwrapper/pwrapper_installed linking method. Now the initialization code lives in the main pkgcore.scripts module which handles sys.path munging for repos and tarballs as well as being used as a target for installed scripts that are generated during the build process. We could trivially use entry_points from setuptools to generate and install the scripts as well, but that appears to add a relatively significant amount of extra runtime for scripts executing under a second due to all the extra modules pkg_resources imports. Also, we probably don't need the extra complexity and layers of abstraction anyway.
* Drop PKGCORE_REPO_PATH, add a new pkgcore._const file for installed usage.Brian Harring2015-03-191-1/+0
| | | | | | | | | | | | | | | | | | | | | During installation, setup.py will now write out a pkgcore._const file holding the pathways that were specified during the install- primarily pathways to get at certain data files, or ebd directories. In the absence of this file, it's assumed the code is being ran from a non installed state- git checkout or release tarball- and defaults to finding that content within the repository. Additionally, pkgcore.const grew a _GET_CONST function; this function pulls in content from pkgcore._const if it exists, allows for interpolation against other const values, and supports pulling the variable out of the environment (if the const allows it); any env access is prefixed with PKGCORE_OVERRIDE_. setup.py test uses this environmental support to override the data path used; very little else should need that sort of support, but it's there. Note: this requires snakeoil 27a76bc or later due to reliance on a new snakeoil.mappings.ProxiedAttrs class.
* pwrapper: fix support for symlinked usage.Brian Harring2015-03-181-1/+1
| | | | | | Additionally, move PKGCORE_REPO_PATH environmental setting to prior to importation. No code should be sensitive to it during import, but it's possible; thus the change.
* condense "running in repo" vars down to oneTim Harder2015-02-181-7/+1
|
* install bash files in /usr/lib/pkgcore instead of the python moduleTim Harder2015-02-181-0/+2
| | | | | | | We don't need to duplicate these for every version of python we install for especially once py3 support is re-added. Note that there is one python script in the bash directory for dohtml, but it's always had a generic shebang anyway.
* fix running pmerge and other scripts from a repo or unpacked tarballTim Harder2015-02-121-1/+5
|
* drop unnecessary os.path import for wrapper scriptsTim Harder2015-02-082-6/+5
|
* simplify wrapper scriptsTim Harder2015-02-072-28/+16
|
* use importlib.import_module instead of snakeoil.modules.load_moduleTim Harder2015-02-062-6/+6
|
* rename pclone_cache to pclonecacheTim Harder2015-01-241-0/+0
| | | | | Matches pplugincache naming and makes it easier to autogen a few more docs.
* leave the sys.path[0] intact when running scripts from the git repoTim Harder2015-01-171-1/+1
| | | | | | This follows the sys.path docs that state the first item of sys.path should be the directory containing the script used to invoke the interpreter.
* sync code between repo and install wrapper scriptsTim Harder2015-01-172-17/+25
| | | | | | We should try to keep these as similar as possible so it's clear how they differ (currently just munging sys.path and adding an env variable for the git repo wrapper script).
* remove old subcommands access methodsTim Harder2015-01-172-8/+0
| | | | | All scripts now use argparse so we don't need to keep the old fallbacks around.
* refactor(eapi-bash): use existing python scripts instead of redundant shimsTim Harder2014-06-061-0/+2
| | | | | | | | Instead of using python shim scripts for pinspect and filter-env for calls from the bash side we use the versions found in PATH. This is done for non-system installed pkgcore by adding the bin directory (which already contains the relevant python scripts) of the git repo or unpacked tarball to PATH.
* use a sane name; argparser, rather than argparse_parserBrian Harring2011-08-302-2/+2
|
* enable argparseBrian Harring2011-08-062-4/+8
|
* expand the failed imports error reporting for the wrappersBrian Harring2011-05-242-3/+13
| | | | | Add python version, and match pwrapper (used for development) to the production code.
* pull in ospkg work, live_rebuild_set, and source_hygene testsBrian Harring2010-08-112-2/+2
|
* set of fixups for a tb in pmerge, more pinspect work, make it (and ↵v0.5.7Brian Harring2009-12-222-0/+2
| | | | filter-env) installed.
* massive amount of py3k compatibility changes, and cleanup to use ↵Brian Harring2009-11-151-15/+12
| | | | snakeoil.klass code. at this point, pkgcore works under py3.1 w/out issue
* remove pregen; pmaint regen is the way to access it nowBrian Harring2007-07-021-1/+0
|
* pull in marien/charlies work; few tweaks needed, but mostly there.Brian Harring2007-04-051-4/+6
|
* update pwrapper_installed to use snakeoil instead of pkgcore.utilBrian Harring2007-04-051-1/+2
|
* make the jump to .3 basis; charlies formatters work, breaking most of util.* ↵Brian Harring2007-03-301-2/+2
| | | | out into snakeoil, etc.
* subcommand support.Brian Harring2006-10-272-2/+8
|
* merge work from marienz.Brian Harring2006-10-262-22/+39
|
* merge up with marienzs branch; flat_list cache (needs a tweak), ↵Brian Harring2006-10-113-0/+3
| | | | util.commandline'ifying lot of my old scripts, lot of pquery output purdying up.
* 0.1.2 bits, and marienzs plugins2 -> plugins shift.Brian Harring2006-10-091-0/+1
|
* initial pmaint script.Brian Harring2006-10-071-0/+1
|
* kill pquery, make pquery2 the defaultBrian Harring2006-09-181-0/+0
|
* merge up from marienz; mainly script changes.Brian Harring2006-09-154-0/+37
|
* distutils usage via marienz, with a few tweaks from me (install pquery mainly)Brian Harring2006-06-0461-4842/+0
|
* use pkgcore.util.commandlineBrian Harring2006-06-031-45/+2
|
* copyright header fixupBrian Harring2006-06-033-9/+3
|
* don't descend beyond PackageRestrictions...Brian Harring2006-06-032-40/+0
|
* couple more env vars to not save...Brian Harring2006-05-261-1/+2
|
* code cleanup, and make the comms fds controlled by instantiating parent.Brian Harring2006-05-261-4/+3
| | | | Shifted the fds to the end of the range to avoid any idiot scripts writing to an fd they shouldn't be.
* doh. if stripping down args list, don't fall back to sys.argv for actual ↵Brian Harring2006-05-261-1/+1
| | | | restriction generation
* for unpack explicit "size is zero" when a distfiles... size is zero (dar)Brian Harring2006-05-261-2/+1
|
* do a lookup for failed node, showing possibilities.Brian Harring2006-05-241-6/+26
| | | | Not perfect, but tiz a start.
* yield all involved pkgs, and display 'em appropriatelyBrian Harring2006-05-241-2/+2
|
* add --all || -a, and convert over to return first match as a defaultBrian Harring2006-05-211-3/+19
|
* couple of changes.Brian Harring2006-05-202-14/+14
| | | | | | 1) move install/compile vars to be defined by dyn_compile. 2) fix single var/func filtering so they don't dump a newline 3) disable attribute dumping during load_environ, use what's in the env instead