@@ -16,9 +16,8 @@ modern compiler. GCC 4.8 should suffice.
1616Instructions for installing Bazel can be found in the [ Bazel install
1717guide] ( https://docs.bazel.build/versions/master/install.html ) .
1818
19- You may need to deal with some details concerning Lua and Python dependencies.
20- Those are documented in a [ separate section] ( #lua-and-python-dependencies )
21- below.
19+ You may need to deal with some details concerning Python dependencies. Those
20+ are documented in a [ separate section] ( #python-dependencies ) below.
2221
2322## Step-by-step instructions for building and running
2423
3130 Tested on Debian 8.6 (Jessie) and Ubuntu 14.04 (Trusty) and newer.
3231
3332 ``` shell
34- $ sudo apt-get install lua5.1 liblua5.1-0-dev libffi-dev gettext \
35- freeglut3-dev libsdl2-dev libosmesa6-dev python-dev python-numpy \
36- python-pil realpath
33+ $ sudo apt-get install libffi-dev gettext freeglut3-dev libsdl2-dev \
34+ libosmesa6-dev python-dev python-numpy python-pil realpath
3735 ```
3836
3937 * On Red Hat Enterprise Linux Server:
@@ -42,25 +40,25 @@ below.
4240 some modifications of the package installation commands on Centos 6.
4341
4442 ` ` ` shell
45- sudo yum -y install unzip java-1.8.0-openjdk lua lua -devel libffi-devel \
46- java-1.8.0-openjdk-devel gcc gcc-c++ freeglut-devel SDL2 SDL2 -devel \
47- mesa-libOSMesa-devel python -devel python-imaging zip numpy
43+ sudo yum -y install unzip java-1.8.0-openjdk libffi -devel gcc gcc-c++ \
44+ java-1.8.0-openjdk-devel freeglut-devel python -devel python-imaging \
45+ SDL2 SDL2 -devel mesa-libOSMesa-devel zip numpy
4846 ` ` `
4947
5048 * On SUSE Linux:
5149
5250 Tested on SUSE Linux Enterprise Server 12.
5351
5452 ` ` ` shell
55- sudo zypper --non-interactive install gcc gcc-c++ lua java-1_8_0-openjdk \
56- java-1_8_0-openjdk-devel lua -devel python -devel python-numpy -devel \
57- python-imaging libSDL- devel libOSMesa- devel freeglut-devel
53+ sudo zypper --non-interactive install gcc gcc-c++ java-1_8_0-openjdk \
54+ java-1_8_0-openjdk-devel libOSMesa -devel freeglut -devel libSDL -devel \
55+ python-devel python-numpy- devel python-imaging
5856 ` ` `
5957
60583. [Clone or download * DeepMind Lab* ](https://github.com/deepmind/lab).
6159
62- 4. If necessary, edit ` lua.BUILD ` and ` python.BUILD` according to the [Lua and
63- Python instructions](# lua-and- python-dependencies) below.
60+ 4. If necessary, edit ` python.BUILD` according to the [Python
61+ instructions](# python-dependencies) below.
6462
65635. Build * DeepMind Lab* and run a random agent. (Use the ` -c opt` flag to enable
6664 optimizations.)
@@ -84,33 +82,18 @@ with *DeepMind Lab*.
8482The random agent target ` :python_random_agent` has a number of optional command line
8583arguments. Run ` bazel run :random_agent -- --help` to see those.
8684
87- # # Lua and Python dependencies
85+ # # Python dependencies
8886
8987* DeepMind Lab* does not include every dependency hermetically. In particular,
90- Lua and Python are not included, but instead must already be installed on your
91- system. This means that depending on the details of where those libraries are
88+ Python is not included, but instead must already be installed on your
89+ system. This means that depending on the details of where that library is
9290installed, you may need to adjust the Bazel build rules in
93- [` lua.BUILD` ](../../lua.BUILD) and [` python.BUILD` ](../../python.BUILD) to
94- locate them correctly.
91+ [` python.BUILD` ](../../python.BUILD) to locate it correctly.
9592
9693The default build rules should work for Debian and Ubuntu. Note that paths in
9794the build rules are relative to the root path specified in the
9895[` WORKSPACE` ](../../WORKSPACE) file (which is ` " /usr" ` by default).
9996
100- Lua, for example, is installed directly in ` /usr/include` on some systems like
101- Red Hat and SUSE Linux. Therefore you need to edit ` lua.BUILD` to reflect that
102- location (or rather, the absence of a special location):
103-
104- ` ` ` python
105- cc_library(
106- name = " lua" ,
107- linkopts = [" -llua" ],
108- visibility = [" //visibility:public" ],
109- )
110- ` ` `
111- The output of ` pkg-config lua --libs --cflags` might be helpful to find the
112- right include directories and linker options.
113-
11497Python requires two separate dependencies: The CPython extension API, and NumPy.
11598If, say, NumPy is installed in a custom location, like it is on SUSE Linux, you
11699need to add the files from that location and set an include search path
0 commit comments