Unverified Commit 1ca0fd37 authored by Simon Ward's avatar Simon Ward
Browse files

Fixup setup.py

parent 7ca0d576
Pipeline #10476 failed with stages
in 12 minutes and 52 seconds
......@@ -56,7 +56,12 @@ COMPILER = 'gfortran'
if os.environ.get('FC', False):
COMPILER = os.environ.get('FC')
print(f'Compiler set to: {COMPILER}')
CFML_OVERRIDE = [os.environ.get('CFML_OVERRIDE', '')]
CFML_OVERRIDE = []
if os.environ.get('CMAKE_Fortran_COMPILER', False):
CFML_OVERRIDE.append(f"-DCMAKE_Fortran_COMPILER={os.environ.get('CMAKE_Fortran_COMPILER')}")
if os.environ.get('CMAKE_GENERATOR', False):
CFML_OVERRIDE.append(f"-G\"{os.environ.get('CMAKE_GENERATOR')}\"")
# We can use cmake provided from pip which (normally) gets installed at /bin
# Except that in the manylinux builds it's placed at /opt/python/[version]/bin/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment