Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
CrysFML
Commits
169f8af0
Unverified
Commit
169f8af0
authored
Jul 13, 2021
by
Simon Ward
Browse files
Fix win make
parent
725acf7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
169f8af0
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment