Skip to content

Commit

Permalink
Scipy dependencies in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
UZerbinati authored Oct 4, 2024
1 parent d986ee0 commit 0ecbfe7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

with open("README.md", "r", encoding = "utf-8") as fh:
long_description = fh.read()


scipy = '' if 'NGSPETSC_NO_SCIPY' in os.environ else 'scipy'

if 'NGSPETSC_NO_INSTALL_REQUIRED' in os.environ:
install_requires = []
elif 'NGS_FROM_SOURCE' in os.environ:
install_requires = [
'petsc4py',
'mpi4py',
'numpy',
scipy,
'pytest', #For testing
'pylint', #For formatting
]
Expand All @@ -19,6 +22,7 @@
'ngsolve',
'petsc4py',
'mpi4py',
scipy,
'pytest', #For testing
'pylint', #For formatting
]
Expand Down

0 comments on commit 0ecbfe7

Please sign in to comment.