hpc4cmb / toast

Time Ordered Astrophysics Scalable Tools
Other
44 stars 39 forks source link

make entry points callable as python modules #680

Closed ickc closed 1 year ago

ickc commented 1 year ago

such that python -m toast.scripts.toast_ground_schedule -h would work or we could do

from toast.scripts.toast_ground_schedule import main
main(...)
tskisner commented 1 year ago

This change seems good. When building wheels through the setup.py wrapper that calls cmake, these entry points are already installed. However, when building directly with cmake, they are not installed. This small change brings the cmake install into line with the setup.py install.