Skip to content

Commit

Permalink
Add unique C extension for encapsulating the fortran library.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Dec 3, 2024
1 parent d0d3520 commit d5e6ff1
Show file tree
Hide file tree
Showing 13 changed files with 250 additions and 340 deletions.
2 changes: 1 addition & 1 deletion py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ where = ["src"]
pyiapws = ["libiapws.*", "libgfortran*", "libquadmath*", "libgcc_s*", "libwinpthread*"]

[project.optional-dependencies]
test = [pytest]
test = ["pytest"]
8 changes: 7 additions & 1 deletion py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@
library_dirs=library_dirs,
runtime_library_dirs=runtime_library_dirs,
extra_objects=extra_objects)
mod = Extension(name=f"py{name:s}._iapws",
sources=[f"./src/py{name:s}/_iapws.c"],
libraries=libraries,
library_dirs=library_dirs,
runtime_library_dirs=runtime_library_dirs,
extra_objects=extra_objects)
setup(version= version,
ext_modules=[mod_g704, mod_r283, mod_r797, mod_version])
ext_modules=[mod])

17 changes: 0 additions & 17 deletions py/src/pyiapws/_core.c

This file was deleted.

11 changes: 0 additions & 11 deletions py/src/pyiapws/_core.h

This file was deleted.

140 changes: 0 additions & 140 deletions py/src/pyiapws/_g704.c

This file was deleted.

Loading

0 comments on commit d5e6ff1

Please sign in to comment.