cython/cython

stdint compat for windows

开放

#2,570 创建于 2018年8月22日

 (6 条评论) (2 个反应) (0 位负责人)Python (1,517 个派生)batch import
Code GenerationLibrarygood first issuehelp wanted

仓库指标

星标
 (8,663 个星标)
PR 合并指标
 (平均合并 45天 12小时) (30 天内合并 52 个 PR)

描述

I have a few cython modules that currently get integer type definitions from numpy using from numpy cimport int64_t, int32_t. Related to #2569, I would prefer to remove the numpy dependency and just use from libc.stdint cimport int64_t, int32_t. Naturally this works on OSX/Linux but fails on Windows.

pandas has a shim for stdint on Windows: https://github.com/pandas-dev/pandas/blob/master/pandas/_libs/src/headers/stdint.h

Would it make sense for this to be done upstream in cython?

贡献者指南