Skip to content

Commit

Permalink
Remove checks for FEniCS and python3 (#182)
Browse files Browse the repository at this point in the history
Co-authored-by: Frédéric Simonis <[email protected]>
  • Loading branch information
BenjaminRodenberg and fsimonis authored Sep 5, 2024
1 parent 2d1894b commit b3a9a28
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
import os
from setuptools import setup
import versioneer
import warnings

# from https://stackoverflow.com/a/9079062
import sys
if sys.version_info[0] < 3:
raise Exception("fenicsprecice only supports Python3. Did you run $python setup.py <option>.? "
"Try running $python3 setup.py <option>.")

if sys.version_info[1] == 6 and sys.version_info[2] == 9:
warnings.warn("It seems like you are using Python version 3.6.9. There is a known bug with this Python version "
"when running the tests (see https://github.com/precice/fenics-adapter/pull/61). If you want to "
"run the tests, please install a different Python version.")

try:
from fenics import *
except ModuleNotFoundError:
warnings.warn("No FEniCS installation found on system. Please install FEniCS and check the installation.\n\n"
"You can check this by running the command\n\n"
"python3 -c 'from fenics import *'\n\n"
"Please check https://fenicsproject.org/download/ for installation guidance.\n"
"The installation will continue, but please be aware that your installed version of the "
"fenics-adapter might not work as expected.")

this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
Expand Down

0 comments on commit b3a9a28

Please sign in to comment.