@@ -35,20 +35,33 @@ Depending on your systems setup, it may make sense to do this inside a virtual e
35
35
virtualenv pyopenms_venv
36
36
source pyopenms_venv/bin/activate
37
37
38
- Next, configure OpenMS with pyOpenMS as target.
38
+ Next, we will configure the CMake-based OpenMS build system
39
+ to enable the pyOpenMS target with the configuration option ``-DPYOPENMS=ON ``.
39
40
If your are using virtualenv or a specific Python version,
40
41
add ``-DPYTHON_EXECUTABLE:FILEPATH=/path/to/python `` to ensure
41
42
that the correct Python executable is used. Compiling pyOpenMS can use a lot of
42
43
memory and take some time, however you can reduce the memory consumption by
43
44
breaking up the compilation into multiple units and compiling in parallel, for
44
45
example ``-DPY_NUM_THREADS=2 -DPY_NUM_MODULES=4 `` will build 4 modules with 2
45
- threads. You can then configure pyOpenMS:
46
+ threads. You can now configure pyOpenMS (inside your build folder) with :
46
47
47
48
.. code-block :: bash
48
49
49
- cmake --build YOURBUILDFOLDER --target pyopenms --config Release
50
+ cmake -DPYOPENMS=ON
51
+
52
+
53
+ Remember, that you can pass the other options as described above to the first
54
+ command by adding ``-DOPTION=VALUE `` statements if you need them.
55
+
56
+ Now build pyOpenMS (now there should be pyOpenMS specific build targets).
57
+ If you are still inside your build folder, you can use "." as the build
58
+ folder parameter.
59
+
60
+ .. code-block :: bash
61
+
62
+ cmake --build $YOURBUILDFOLDER --target pyopenms --config Release
63
+
50
64
51
- Build pyOpenMS (now there should be pyOpenMS specific build targets).
52
65
Afterwards, test that all went well by running the tests:
53
66
54
67
.. code-block :: bash
0 commit comments