在Windows 10,Python 3.7.1 [MSC v.19124)和Cython 0.29上安装Astropy 3.2.dev23273时,看到以下警告。 这只是其中之一。 这似乎会影响多个子包。
C:\...\Cython\Compiler\Main.py:367:FutureWarning:
Cython directive 'language_level' not set, using 2 for now (Py2).
This will change in a later release!
File: C:\...\astropy\astropy\table\_np_utils.pyx
也许这与cython / cython#2565有关。 我们需要做任何事情吗?
这是来自Cython 0.29的新警告: https ://cython.readthedocs.io/en/latest/src/changes.html#id7
我想我们可以安全地使用language_level=3
(https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html#compiler-options)。
PR将此包含在3.1中?
我在上面尝试查看#8106。
最有用的评论
这是来自Cython 0.29的新警告: https ://cython.readthedocs.io/en/latest/src/changes.html#id7
我想我们可以安全地使用
language_level=3
(https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html#compiler-options)。