编辑设置以允许GCC编译中的参数不匹配 [英] Edit setup to allow argument mismatch in gcc compilation
本文介绍了编辑设置以允许GCC编译中的参数不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道该如何着手做这件事。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
中感谢帮助!
推荐答案
修复程序已在您链接的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']) ]
这篇关于编辑设置以允许GCC编译中的参数不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文