Skip to content

setup.py -> pyproject.toml#3

Open
earth-chris wants to merge 6 commits intomainfrom
pyproject
Open

setup.py -> pyproject.toml#3
earth-chris wants to merge 6 commits intomainfrom
pyproject

Conversation

@earth-chris
Copy link
Owner

the current setup.py approach to creating fortran extensions is not compatible with some recent PEP standards, meaning poetry will not install it from pypi. I struggled for a few hours to find a simple way to package the fortran code into a python module for execution, and I have not yet been successful. turns out it is difficult to build fortran modules using poetry.

so i settled here on just building .so files with f2py using the make fortrain target, and i'll just do this manually for the current versions of python (3.9-3.11) for the two OS I have access to (linux x86, osx 64-arm). this limits use to those systems, but hopefully the linux builds are stable enough 🤷🏻

@earth-chris
Copy link
Owner Author

Here's the poetry guide to build scripts: https://python-poetry.org/docs/building-extension-modules/

And a nice example for building multiple distributions via GA: https://github.com/coin-or/CyLP/blob/master/.github/workflows/cibuildwheel.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant