MilesCranmer / PySR

High-Performance Symbolic Regression in Python and Julia
https://astroautomata.com/PySR
Apache License 2.0
2.19k stars 207 forks source link

Make precompilation optional #263

Closed MilesCranmer closed 1 year ago

MilesCranmer commented 1 year ago

On systems where compiled modules are disabled, it doesn't make sense to run the precompilation. This adds the option:

pysr.install(precompile=False)

this will also automatically set precompile=False on systems with static binaries, where compiled modules can't be used anyways.