Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an incomplete draft to enable flang compiling, but a team effort will be required here to complete the work.
The
setup-iOS.sh
file is modified to build the docker image that will be used to compile the Fortran part of Scipy or any other package.The main build script must be modified to put the newly added
bin
folder first in the path of the build environment so the makefile can seegfortran
, which is actually a Python script that will call the docker container.Next just create the recipe for scipy. Add dependencies as required like openblas and patch the setup/makefile as required like any other recipe. Scipy will build the c part at the beginning and after a few minutes it will hit the fortan part. At that point, the compilation will become really slow because of the file copy to the docker container and the terminal might be strange with broken CR/LF. After a few minutes, the fortran part will complete and the wheel will be packed as usual.
When I do that on my side with a repository pre-dating the first chaquopy iOS build system, it does work but I was only building the iphoneos wheel, not the fat wheel for the simulator.