Skip to content

Commit

Permalink
Configure GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophWWagner committed Apr 7, 2023
1 parent 6edc463 commit 02103ef
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 67 deletions.
2 changes: 1 addition & 1 deletion fastmat/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# during execution of the installation script, setup.py. Distribution tarballs
# contain a pre-generated copy of this file.

__version__ = '0.2.post0'
__version__ = '0.2.1'
10 changes: 0 additions & 10 deletions setup-build-3.10.sh

This file was deleted.

11 changes: 0 additions & 11 deletions setup-build-3.11.sh

This file was deleted.

20 changes: 0 additions & 20 deletions setup-build-3.7.sh

This file was deleted.

22 changes: 0 additions & 22 deletions setup-build-3.9.sh

This file was deleted.

14 changes: 11 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,10 @@ def __init__(self, *args, **kwargs):
marchFlag = os.environ['FASTMAT_COMPILER_OPTIONS']
mtuneFlag = ''
WARNING("Passing special build options: " + marchFlag)
elif 'FASTMAT_GENERIC' in os.environ and bool(int(os.environ['FASTMAT_GENERIC'])):
elif (
('FASTMAT_GENERIC' in os.environ) and
(bool(int(os.environ['FASTMAT_GENERIC'])))
):
marchFlag = '-march=x86-64'
mtuneFlag = '-mtune=core2'
WARNING("Building package for generic architectures")
Expand All @@ -282,11 +285,16 @@ def __init__(self, *args, **kwargs):
compilerArguments += ['/O2', '/fp:precise', marchFlag]
elif strPlatform == 'Linux':
# assuming Linux and gcc
compilerArguments += ['-Ofast', marchFlag, mtuneFlag]
compilerArguments.extend(['-Ofast', marchFlag])
if len(mtuneFlag):
compilerArguments.append(mtuneFlag)

useGccOverride = True
elif strPlatform == 'Darwin':
# assuming Darwin
compilerArguments += ['-Ofast', marchFlag, mtuneFlag]
compilerArguments.extend(['-Ofast', marchFlag])
if len(mtuneFlag):
compilerArguments.append(mtuneFlag)
else:
WARNING("Your platform is currently not supported by %s: %s" % (
packageName, strPlatform))
Expand Down

0 comments on commit 02103ef

Please sign in to comment.