Open ghost opened 6 years ago
Hi @brianmingus, glad to see you here :+1:
About Cython compilation:
You should add your file to ext_module
https://github.com/RaRe-Technologies/gensim/blob/1afaacc8017ff2b51e8677b8b36cd3b9671b20be/setup.py#L252-L262 (include_dirs=[...]
will be different in your case)
You should translate/compile your code as
cython path/to/your/great.pyx
- translate .pyx
to .c
python setup.py build_ext --inplace
- compile .c
to .so
(or something else, if you use not linux)Just remembered that I have some local modifications to cs.h which will hopefully fix the integration.
/* #ifdef MATLAB_MEX_FILE */
/* #undef csi */
/* #define csi mwSignedIndex */
/* #endif */
/* #ifndef csi */
/* #define csi ptrdiff_t */
/* #endif */
// FORCE use of 32 bit int offsets, because thats what scipy uses so we can
// avoid a copy.
#define csi int32_t
Related PR #1896
Progress tracking bug.