diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-03-16 08:07:29 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-03-16 08:31:52 -0700 |
commit | f229824dc9c453adf6067500e2bf6761536e4f2f (patch) | |
tree | 3c1d741421734598a17df847ce09a0f7e07170a1 /lib/bb/persist_data.py | |
parent | 967cd1aa2c59f15d805862bd9935f507c635c762 (diff) | |
download | bitbake-f229824dc9c453adf6067500e2bf6761536e4f2f.tar.gz |
Initial work on getting bitbake working under pypy
- use os.chmod, not os.fchmod, as the latter is missing under pypy
- rearrange our imports a bit
- don't die if sqlite3 is missing shared cache support
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/persist_data.py')
-rw-r--r-- | lib/bb/persist_data.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index bd60fca7c..38ad35490 100644 --- a/lib/bb/persist_data.py +++ b/lib/bb/persist_data.py @@ -39,7 +39,8 @@ if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): logger = logging.getLogger("BitBake.PersistData") -sqlite3.enable_shared_cache(True) +if hasattr(sqlite3, 'enable_shared_cache'): + sqlite3.enable_shared_cache(True) class SQLTable(collections.MutableMapping): |