diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-03-16 08:07:29 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-06 15:42:03 +0100 |
commit | 88dbb0523cfdc46c8f7e4484ce57c3f46fd475a1 (patch) | |
tree | 6d713979334869df56ee14acdb39ca742b9d2798 /bitbake/lib/bb/build.py | |
parent | 628bd54d936650d03ba2ffd0a08aade2f84529b1 (diff) | |
download | poky-88dbb0523cfdc46c8f7e4484ce57c3f46fd475a1.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
(Bitbake rev: f229824dc9c453adf6067500e2bf6761536e4f2f)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 83a378febb..194a28b38c 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -224,7 +224,8 @@ def exec_func_shell(function, d, runfile, cwd=None): | |||
224 | if cwd: | 224 | if cwd: |
225 | script.write("cd %s\n" % cwd) | 225 | script.write("cd %s\n" % cwd) |
226 | script.write("%s\n" % function) | 226 | script.write("%s\n" % function) |
227 | os.fchmod(script.fileno(), 0775) | 227 | |
228 | os.chmod(runfile, 0775) | ||
228 | 229 | ||
229 | env = { | 230 | env = { |
230 | 'PATH': d.getVar('PATH', True), | 231 | 'PATH': d.getVar('PATH', True), |