summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorRohit Goswami <rog32@hi.is>2021-11-14 21:25:27 +0000
committerRohit Goswami <rog32@hi.is>2021-11-15 03:49:21 +0000
commita565be5792bac34938f477e27bc085e65bd3191d (patch)
tree00eeb920bb45e749c3c7a59429c4a995c0948d9c /doc/source
parent27937472c698d4824236ae3198e92cfa758a48bc (diff)
downloadnumpy-a565be5792bac34938f477e27bc085e65bd3191d.tar.gz
MAINT: Fix build issues
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/f2py/buildtools/cmake.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/source/f2py/buildtools/cmake.rst b/doc/source/f2py/buildtools/cmake.rst
index 0c7d4bf63..fbac926f0 100644
--- a/doc/source/f2py/buildtools/cmake.rst
+++ b/doc/source/f2py/buildtools/cmake.rst
@@ -45,13 +45,14 @@ conventions are different and the output library is not automatically prefixed
with the ``cython`` information.
.. code:: bash
- ls .
- # CMakeLists.txt fib1.f
- mkdir build && cd build
- cmake ..
- make
- python -c "import numpy as np; import fibby; a = np.zeros(9); fibby.fib(a); print (a)"
- # [ 0. 1. 1. 2. 3. 5. 8. 13. 21.]
+
+ ls .
+ # CMakeLists.txt fib1.f
+ mkdir build && cd build
+ cmake ..
+ make
+ python -c "import numpy as np; import fibby; a = np.zeros(9); fibby.fib(a); print (a)"
+ # [ 0. 1. 1. 2. 3. 5. 8. 13. 21.]
This is particularly useful where an existing toolchain already exists and
``scikit-build`` or other additional ``python`` dependencies are discouraged.