[Bug 1346279] Re: MAAS requires explicit dependency on python-bson
Raphaël Badin
1346279 at bugs.launchpad.net
Mon Jul 21 13:10:47 UTC 2014
The utility in src/maasserver/utils/jsenums.py is used when building the
package. It uses the map_enum utility that recently from moved over to
src/provisioningserver/utils/__init__.py. The problem with that is that
is means that all the modules imported by
src/provisioningserver/utils/__init__.py must be present as "build
dependencies" in the packaging.
I see three possible solutions here:
- Add all the required dependencies as build dependencies in the
packaging.
- Move map_enum in a place where it can be imported in isolation without
triggering a ton of imports
- Add a copy of the code of map_enum in src/maasserver/utils/jsenums.py
instead of importing the shared map_enum.
** Summary changed:
- MAAS requires explicit dependency on python-bson
+ Building the MAAS package fails with "ImportError: No module named bson"
** Changed in: maas (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1346279
Title:
Building the MAAS package fails with "ImportError: No module named
bson"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1346279/+subscriptions
More information about the Ubuntu-server-bugs
mailing list