我想将 GSL 文件包含在我想使用“conda build packagename”构建的 cython 程序中。要将 GNU GSL 文件与 Python 连接,我使用的是 cython_gsl 包(https://github.com/twiecki/CythonGSL)。但是,这需要在每个操作系统上安装 GSL 文件。查看 cython_gsl 的init .py 文件,应该传递给 .pyx 文件的文件夹是:
Windows:c:\Program Files\GnuWin32\include
OSX/Linux: os.popen('gsl-config --cflags').read()[2:-1]
我可以在 shell/batch 文件中包含下载和安装 GSL 标头,所以这是通过“conda install packagename”自动完成的吗?
谢谢您的帮助。
另外,如果不可能,它们是否是下载 GSL 文件并允许轻松连接 cython 构建的 python 模块?