Skip to content

Commit

Permalink
cleanup setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward committed Nov 20, 2024
1 parent 8e25a7c commit 0d32312
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,7 @@ def get_petsc_variables():
return {k.strip(): v.strip() for k, v in splitlines}


# ~ def _requirements(deps, pkg):
# ~ """Recursively obtain the dependencies of a package using pkgconfig
# ~ """
# ~ deps = pkgconfig.requires(pkg)
# ~ if len(deps[0]):
# ~ for p in deps:
# ~ deps.extend(_requirements(deps, p))
# ~ return deps
# ~ else:
# ~ return []


# JBTODO: This is deprecated behaviour, what to do?:
# TODO: This is deprecated behaviour, what to do?:
if "clean" in sys.argv[1:]:
# Forcibly remove the results of Cython.
for dirname, dirs, files in os.walk("firedrake"):
Expand All @@ -67,11 +55,6 @@ def get_petsc_variables():
os.remove(os.path.join(dirname, f))


# We need to link to 6 different external packages, and we do that in 5 different
# ways! The details details of how to compile extensions can be found at:
# https://setuptools.pypa.io/en/latest/userguide/ext_modules.html#compiler-and-linker-options


@dataclass
class ExternalDependency:
''' This dataclass stores the relevant information for the compiler as fields
Expand Down

0 comments on commit 0d32312

Please sign in to comment.