Skip to contentSkip to conversation

Add missing module to installer

PATCH In review Bernhard Reutner-Fischer 3 participants 4 messages Feb 2, 2012 – Feb 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add missing module to installer

Ok for me to push this one?

Bernhard Reutner-Fischer (1):
setup.py: Install concurrent too

 setup.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.8.3
#1 lore raw

PATCH 1/1 setup.py: Install concurrent too

I was getting:
Traceback (most recent call last):
File "/scratch/src/oe/bitbake/build/scripts-2.7/bitbake", line 39, in <module>
from bb import cooker
File "/scratch/src/oe/bitbake/build/lib/bb/cooker.py", line 35, in <module>
from concurrent import futures
ImportError: No module named concurrent
Command exited with non-zero status 1

---
 setup.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
setup.py +2 -1
index 3f9899e..e86ddd1 100755
@@ -54,7 +54,8 @@ setup(name='bitbake',
       requires = ["ply", "progressbar", "futures"],
       package_dir = {"": "lib"},
       packages = ["bb.server", "bb.parse.parse_py", "bb.parse", "bb.fetch",
-                  "bb.fetch2", "bb.ui.crumbs", "bb.ui", "bb.pysh", "bb", "prserv"],
+                  "bb.fetch2", "bb.ui.crumbs", "bb.ui", "bb.pysh", "bb",
+                  "prserv", "concurrent", "concurrent.futures"],
       py_modules = ["codegen"],
       scripts = ["bin/bitbake", "bin/bitbake-layers", "bin/bitbake-diffsigs", "bin/bitbake-prserv"],
       data_files = [("share/bitbake", glob("conf/*") + glob("classes/*")),
Signature · 1 line
1.7.8.3
#2 lore raw

Re: [PATCH] setup.py: Install concurrent too

Quoted 10 lines · Bernhard Reutner-Fischer

I was getting:
Traceback (most recent call last):
 File "/scratch/src/oe/bitbake/build/scripts-2.7/bitbake", line 39, in <module> from bb import cooker
 File "/scratch/src/oe/bitbake/build/lib/bb/cooker.py", line 35, in <module> from concurrent import futures
ImportError: No module named concurrent
Command exited with non-zero status 1

Just as an FYI, this was the wrong approach. setup.py already declared our dependency on concurrent.futures. If you needed to install it, you need to install the dependencies as well. If you use it in place in the source tree, the installed files are irrelevent. Neither of which require what you tried to do here. Of course, this is irrelevent now anyway, as we no longer use futures, but I wanted to make this clear. It was handled the same way we handle all our other dependencies (e.g. progressbar). We copy it local for those running from the source tree, and add the dep to setup.py.

Signature · 1 line
Christopher Larson