obidistutils: added fPIC flag needed for linux compilation and set

minimum python version to 3.7
This commit is contained in:
cmercier
2019-03-12 14:20:59 +01:00
parent 185a95e667
commit a9ba7744cf

View File

@ -75,7 +75,8 @@ def findCython(root,base=None,pyrexs=None):
pyrexs[-1].extra_compile_args.extend(['-msse2', pyrexs[-1].extra_compile_args.extend(['-msse2',
'-Wno-unused-function', '-Wno-unused-function',
'-Wmissing-braces', '-Wmissing-braces',
'-Wchar-subscripts' '-Wchar-subscripts',
'-fPIC'
]) ])
except IOError: except IOError:
@ -142,7 +143,7 @@ def setup(**attrs):
log.set_threshold(log.INFO) log.set_threshold(log.INFO)
minversion = attrs.get("pythonmin",'3.4') minversion = attrs.get("pythonmin",'3.7')
maxversion = attrs.get('pythonmax',None) maxversion = attrs.get('pythonmax',None)
fork = attrs.get('fork',False) fork = attrs.get('fork',False)
requirementfile = attrs.get('requirements','requirements.txt') requirementfile = attrs.get('requirements','requirements.txt')