]>
Commit | Line | Data |
---|---|---|
1d09f67e TL |
1 | # Licensed to the Apache Software Foundation (ASF) under one |
2 | # or more contributor license agreements. See the NOTICE file | |
3 | # distributed with this work for additional information | |
4 | # regarding copyright ownership. The ASF licenses this file | |
5 | # to you under the Apache License, Version 2.0 (the | |
6 | # "License"); you may not use this file except in compliance | |
7 | # with the License. You may obtain a copy of the License at | |
8 | # | |
9 | # http://www.apache.org/licenses/LICENSE-2.0 | |
10 | # | |
11 | # Unless required by applicable law or agreed to in writing, | |
12 | # software distributed under the License is distributed on an | |
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
14 | # KIND, either express or implied. See the License for the | |
15 | # specific language governing permissions and limitations | |
16 | # under the License. | |
17 | ||
18 | ARG base | |
19 | FROM ${base} | |
20 | ||
21 | RUN apt-get update -y -q && \ | |
22 | apt-get install -y -q \ | |
23 | python3 \ | |
24 | python3-pip \ | |
25 | gtk-doc-tools \ | |
26 | libgirepository1.0-dev \ | |
27 | libglib2.0-doc \ | |
28 | lsb-release \ | |
29 | luarocks \ | |
30 | pkg-config \ | |
31 | ruby-dev && \ | |
32 | if [ "$(lsb_release --codename --short)" = "xenial" ]; then \ | |
33 | apt-get install -y -q --no-install-recommends -t xenial-backports \ | |
34 | ninja-build; \ | |
35 | fi && \ | |
36 | apt-get clean && \ | |
37 | rm -rf /var/lib/apt/lists/* | |
38 | ||
39 | RUN luarocks install lgi | |
40 | ||
41 | # pip on Ubuntu 20.04 may be buggy: | |
42 | # | |
43 | # Collecting meson | |
44 | # Downloading meson-0.53.2.tar.gz (1.6 MB) | |
45 | # Installing build dependencies: started | |
46 | # Installing build dependencies: finished with status 'done' | |
47 | # Getting requirements to build wheel: started | |
48 | # Getting requirements to build wheel: finished with status 'error' | |
49 | # ERROR: Command errored out with exit status 1: | |
50 | # command: /usr/bin/python3 /usr/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpsk4jveay | |
51 | # cwd: /tmp/pip-install-jn79a_kh/meson | |
52 | # Complete output (1 lines): | |
53 | # /usr/bin/python3: can't find '__main__' module in '/usr/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl/pep517/_in_process.py' | |
54 | # ---------------------------------------- | |
55 | # ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpsk4jveay Check the logs for full command output. | |
56 | RUN (python3 -m pip install meson || \ | |
57 | python3 -m pip install --no-use-pep517 meson) && \ | |
58 | gem install --no-document bundler | |
59 | ||
60 | COPY c_glib/Gemfile /arrow/c_glib/ | |
61 | RUN bundle install --gemfile /arrow/c_glib/Gemfile | |
62 | ||
63 | ENV ARROW_BUILD_TESTS=OFF \ | |
64 | ARROW_BUILD_UTILITIES=OFF \ | |
65 | ARROW_INSTALL_NAME_RPATH=OFF |