我正在尝试安装 this python package。不幸的是,由于排名不匹配,我遇到了编译错误。
已报告此包的错误 here。错误报告说“最实用的解决方案似乎是将编译器标志 -fallow-argument-mismatch 添加到安装脚本中。”
我不明白如何去做。 setup.py 脚本仅包含以下内容:
from numpy.distutils.core import setup
from numpy.distutils.core import Extension
import os
import glob
ext_modules = [ Extension('orthpol_light',
glob.glob(os.path.join('src','*.f'))) ]
setup(
name='orthpol_light',
version = "1.0.1",
license = "COPYING.LESSER",
description = "Light python wrapper for the ORTHPOL package",
long_description=open("README.rst").read(),
url="http://www.limitcycle.it",
author = "Daniele Bigoni",
author_email = "dabi@limitcycle.it",
ext_modules = ext_modules
)
我把旗帜放在这里吗?我真的不知道。导致错误的文件在 src/r1mach.f
感谢帮助!
答案 0 :(得分:0)
修复已在您链接的软件中实现,位于 adapt-to-gcc10
分支 https://bazaar.launchpad.net/~catastropeia/pyorthpol/adapt-to-gcc10/revision/68
相关命令就变成了
ext_modules = [ Extension('orthpol_light',
glob.glob(os.path.join('src','*.f')),
extra_f77_compile_args=['-fallow-argument-mismatch']) ]