pyodide/tools
Hood Chatham f7b0f8c5cb
No replay (#2256)
Our package build process currently has a significant flaw: we first run setup.py, recording all compilation commands, then we rewrite these compilation commands to invoke emcc and replay them, and then we pray that the cross compiled executables ended up in the right place to go into the wheel. This is not a good strategy because the build script is allowed to implement arbitrary logic, and if it moves, renames, etc any of the output files then we lose track of them. This has repeatedly caused difficulty for us.

However, we also make no particularly significant use of the two pass approach. We can just do the simpler thing: capture the compiler commands as they occur, modify them as needed, and then run the fixed command.

I also added a patch to fix the numpy feature detection for wasm so that we don't have to include _npyconfig.h and config.h, numpy can generate them in the way it would for a native build. I opened a numpy PR that would fix the detection for us upstream:
numpy/numpy#21154

This clears the way for us to switch to using pypa/build (as @henryiii has suggested) by removing our dependence on specific setuptools behavior.

This is on top of #2238.
2022-03-13 11:39:06 -07:00
..
symlinks No replay (#2256) 2022-03-13 11:39:06 -07:00
.gitignore Ignore the gfortran link 2019-01-23 19:58:45 -05:00
buildf2c chore: more pre-commit checking (#2257) 2022-03-07 21:51:20 -08:00
dependency-check.sh chore: more pre-commit checking (#2257) 2022-03-07 21:51:20 -08:00
node_test_driver.js Set up pytest node tests (#1717) 2021-07-20 10:48:27 +02:00
pytest_wrapper.py chore: pyupgrade 3.9+ (#2195) 2022-02-20 17:13:37 -05:00
testsetup.js Set up pytest node tests (#1717) 2021-07-20 10:48:27 +02:00