summaryrefslogtreecommitdiffstats
path: root/lib/bb/__init__.py
AgeCommit message (Collapse)Author
2011-06-28Update version to 1.13.21.13.2Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09Update version to 1.13.11.13.1Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-18Increment version for development versionRichard Purdie
2011-02-18Release 1.12.01.12.0Richard Purdie
2011-02-11Enable some DeprecationWarningsChris Larson
We'll be skipping the Pending Deprecation step given our release process. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-10__init__.py: Fix debug log level handling to correct debug outputRichard Purdie
(From Poky rev: d7eebbe9dbf0d790d4af93466f5c27127cae0999) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-08Shift traceback pre-formatting into LogHandlerChris Larson
It's cleaner to leave it behaving as usual, passing the exception data in the exc_info attribute of the LogRecord where it normally lies, and then let LogHandler make it pickleable so it can be sent to the UI. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-10Inject taskpid into log records via our log handlerChris Larson
It turns out that while log filters added with addFilter are only associated with that logger, and not its children, handlers are inherited, and handlers can be filters. So, let's add filtering to our existing LogHandler class which dispatches our log records as bitbake events. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-10Switch to fetch2 fetcher code based on the environment variable BBFETCH2Richard Purdie
(From Poky rev: af06e4a8efbcaff657c397c34f2cb893d2d7f7f7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-10bitbake/__init__.py: Add taskpid to all LogRecords (subclassed to be ↵Richard Purdie
BBLogRecords) This allows us to identify which task messages are from. (From Poky rev: f8e7215f6c4ece8c0a74ceee8da707cf791038e8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-29bb.debug: handle caller not passing a debug levelChris Larson
This is a compatibility measure, as previous versions did not error out when this occurred, and will most likely be dropped in the next bitbake minor version in favor of a fatal error. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-09Work around issue with pickling of traceback objectsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-08Apply fix for issue where the loggers were constructed with the wrong classChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-03Switch bitbake internals to use logging directly rather than bb.msgChris Larson
We use a custom Logger subclass for our loggers This logger provides: - 'debug' method which accepts a debug level - 'plain' method which bypasses log formatting - 'verbose' method which is more detail than info, but less than debug Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-27Use the python logging module under the hood for bb.msgChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-10Use PendingDeprecationWarning for functions moved from bb to bb.utilsChris Larson
This is necessary, as there has not yet been a release with the bb.utils versions in place. We can't show them a deprecation warning when they can't safely change it yet. Show a PendingDeprecationWarning until 1.10 releases and OE requires it, then we can move to DeprecationWarning. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-15Move the python version check into the python packageChris Larson
This ensures the check is run for anyone using the package, including setup.py, though it's sad that it's necessary, since all it really wants is __version__. Ideally, we'd avoid the version check entirely in favor of checking for functionality, but that's rather difficult with language constructs like context managers, so this'll do for now. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-15Bump version to 1.11.0Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Deprecate the usage of certain objects via certain modulesChris Larson
As an example, this displays a deprecation warning for the use of "bb.encodeurl" when you should be using "bb.fetch.encodeurl". It includes a convenience function for this purpose. It should be of use when moving objects between modules permanently, changing the API the user sees. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Drop __all__ usageChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Drop some unused classesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Import fixupsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Drop doctest, as we aren't utilizing itChris Larson
We should add back in some proper unit testing. Doctest is rather limited, and we haven't actually made use of it since the original implementation of the datastore when the project started, as far as I'm aware. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-06Resurrect the old bb.vercmp as bb.utils.vercmp, and its depsChris Larson
This is just for compatibility. We may drop it in the future, or rewrite it, as it's not particularly pythonic. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24Why is bb/__init__.py importing bb?Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24bb.utils: remove old portage remnantsChris Larson
The following utility functions were removed. Note that in this particular case we're bypassing a proper deprecation process, as these functions are clearly not utilized, are obvious remnants of old ways of doing things, and some of which do not even function properly. - tokenize - evaluate - flatten - relparse - ververify - isjustname - isspecific - catpkgsplit - pkgsplit - pkgcmp - dep_parenreduce - dep_opconvert Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-19Kill unused projectdir in bb package.Chris Larson
Signed-off-by: Chris Larson <clarson@mvista.com>
2010-02-19Move most utility functions from bb into bb.utils.Chris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-19Move compat imports in the bb package to avoid circular dep issues.Chris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-19Move encodeurl, decodeurl into bb.fetch.Chris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-02-19Move MalformedUrl, VarExpandError into appropriate modules.Chris Larson
Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-01-21Fix bb.plain and bb.warn function, initial patch from Petri Lehtinen ↵Richard Purdie
<petri.lehtinen+bitbake-dev@inoi.fi> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-05-11[bb] Fix the tests by setting a debug level at startHolger Hans Peter Freyther
In preparation for python3.0 make sure our test cases are working again.
2008-02-26Remove digraph and switch to new stamp checking code.Richard Purdie
2007-10-30bb/__init__.py: Add bb.copyfile function similar to bb.movefile (and improve ↵Richard Purdie
movefile error reporting)
2007-08-19__init__.py: Fix a bug in decodeurl where http://some.where.com/somefile.tgz ↵Richard Purdie
decoded to host="" (#1530)
2007-08-18__init__.py: Add command moduleRichard Purdie
2007-08-17bb/__init.py: Sort digraph output to make builds more reproducibleRichard Purdie
2007-08-15msg.py: Fix plain message typeRichard Purdie
2007-08-13msg.py: Add plain message type, remove legacy logging codeRichard Purdie
2007-08-12bb/__init__.py: Improve which functionRichard Purdie
2007-03-04Update versionsRichard Purdie
2007-01-04drop shebangs from lib/bb scriptsMarcin Juszkiewicz
- those scripts are not called by hand by bitbake users and most of package linting tools (lintian/Debian, rpmlint/Fedora) complain about not executable scripts. - if someone want to run them by hand then he will be able to do it with calling 'python SCRIPT'
2006-12-08Add proper GPLv2 headers to all BitBake filesHolger Hans Peter Freyther
BitBake trunk is now GPLv2 only, no mix of MIT,FreeBSD License is left. Update GPL headers to point to the correct address of the FSF Update the list of authors. Uli Luckas, Seb Frankengul and Tim Amsell contributed to the sourcecode as well
2006-11-13Bump to version 1.7.4Richard Purdie
2006-11-01BitBake: Tag 1.6.2 and 1.7.2 of BitBakeHolger Hans Peter Freyther
2006-10-21bump 1.7 versionsRichard Purdie
2006-08-20bitbake/lib/bb/taskdata.py:Richard Purdie
bitbake/lib/bb/__init__.py: bitbake/lib/bb/shell.py: bitbake/lib/bb/runqueue.py: bitbake/lib/bb/msg.py: bitbake/MANIFEST: bitbake/bin/bitbake: Major rewrite and modularisation of the dependecy code. The code in bin/bitbake is replaced by the taskdata and runqueue modules. The code is designed to support multiple threads (although the initial threading algothirm is simplistic). The new code is aimed to be maintainable and debuggable (once msy.py is finished).
2006-08-15bitbake: Trunk is now at version 1.7.0Holger Hans Peter Freyther
2006-08-15bitbake: Assign release number 1.6.0 to the trunk and update the ChangeLogHolger Hans Peter Freyther