beeware / Python-Apple-support

A meta-package for building a version of Python that can be embedded into a macOS, iOS, tvOS or watchOS project.
MIT License
1.12k stars 164 forks source link

Question: add python module with Embedding library with C code? #99

Closed somebodyLi closed 4 years ago

somebodyLi commented 4 years ago

In your doc Adding NumPy to your iOS project section 5, some code like

extern PyMODINIT_FUNC PyInit_multiarray(void);

extern PyMODINIT_FUNC PyInit_umath(void);

extern PyMODINIT_FUNC PyInit_fftpack_lite(void);

extern PyMODINIT_FUNC PyInit__umath_linalg(void);

extern PyMODINIT_FUNC PyInit_lapack_lite(void);

extern PyMODINIT_FUNC PyInit_mtrand(void);`

is there necessary would we implements those method by ourself? and how can we complete that ? In my side , some necessary details were not clear enough in this doc, would you give me your hand?? thanks a lot!!!

freakboy3742 commented 4 years ago

Those functions are Python module implementation functions. You don't need to write them - they're part of the numpy implementation.