contrib/docker/ubuntu.template
author Gregory Szorc <gregory.szorc@gmail.com>
Fri, 30 Mar 2018 13:39:06 -0700
changeset 37210 b9dd8403d8ff
parent 34424 1baa077214ae
permissions -rw-r--r--
zope: force module import by importing symbols Previously, we tried to import a module and handle the ImportError. Our lazy module importer doesn't verify the module exists and returns a dummy object representing the module. Only once we attempt to load a symbol in the module does the ImportError get raises. This means that simple imports inside `try..except ImportError` don't detect missing modules. This commit changes imports in zope.interface to access symbols, thus forcing module load and triggering ImportError. This fixes zope.interface for pure builds. Differential Revision: https://phab.mercurial-scm.org/D2980
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29031
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     1
FROM ubuntu:__CODENAME__
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     2
RUN apt-get update && apt-get install -y \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     3
  build-essential \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     4
  debhelper \
34424
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 32148
diff changeset
     5
  devscripts \
29031
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     6
  dh-python \
32148
e02bae37af30 docker: install less as a build-time dependency in deb-based distros
Anton Shestakov <av6@dwimlabs.net>
parents: 29031
diff changeset
     7
  less \
29031
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     8
  python \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     9
  python-all-dev \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
    10
  python-docutils \
34424
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 32148
diff changeset
    11
  unzip \
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 32148
diff changeset
    12
  zip