Unverified Commit 169f8af0 authored by Simon Ward's avatar Simon Ward
Browse files

Fix win make

parent 725acf7a
......@@ -10,21 +10,22 @@ import pathlib
import os
import sys
import shutil
from sys import platform as _platform
BITS = struct.calcsize("P") * 8
PACKAGE_NAME = "crysfml_api"
SOURCE_DIR = '.'
def cmd_exists(cmd):
return shutil.which(cmd) is not None
COMPILER = 'gfortran'
# if _platform == "linux" or _platform == "linux2":
# linux
if _platform == "darwin":
# MAC OS X
COMPILER = 'gfortran-10'
# elif _platform == "win32":
# # Windows
# elif _platform == "win64":
# # Windows 64-bit
if not cmd_exists(COMPILER):
versions = [10, 9, 8]
for version in versions:
COMPILER = f'gfortran-{version}'
if cmd_exists(COMPILER):
break
# 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/
# (as a symlink at least) which is *not* on the path.
......
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