Skip to content

Commit 6378934

Browse files
committed
update README
1 parent 3e908d3 commit 6378934

File tree

1 file changed

+5
-5
lines changed
  • examples/extensions/C-API

1 file changed

+5
-5
lines changed

examples/extensions/C-API/README

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
This example for using the C-API with NumPy is for python 3.x only --
2+
the interface for python 2.x is different. Note that this was written
3+
to use the latest API.
4+
15
reference: http://scipy-lectures.github.io/advanced/interfacing_with_c/interfacing_with_c.html
26
http://wiki.scipy.org/Cookbook/C_Extensions/NumPy_arrays
37

48
to build:
59

6-
python setup.py build_ext --inplace
10+
python3 setup.py build_ext --inplace
711

812
to run:
913

@@ -28,7 +32,3 @@ to run:
2832
[ 225. 256. 289. 324. 361.]]
2933

3034

31-
32-
33-
Note that directly accessing the fields in the PyArrayObject struct is
34-
deprecated, and there will be a warning issued.

0 commit comments

Comments
 (0)