Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make entry points callable as python modules #680

Merged
merged 1 commit into from
Jul 25, 2023
Merged

make entry points callable as python modules #680

merged 1 commit into from
Jul 25, 2023

Conversation

ickc
Copy link
Contributor

@ickc ickc commented Jul 21, 2023

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(...)

such that `python -m toast.scripts.toast_ground_schedule -h` would work
or we could do
```py
from toast.scripts.toast_ground_schedule import main
main(...)
```
@ickc ickc marked this pull request as ready for review July 22, 2023 00:04
@tskisner
Copy link
Member

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.

@tskisner tskisner merged commit b5f3c3f into hpc4cmb:toast3 Jul 25, 2023
@ickc ickc deleted the entry_points branch July 31, 2023 19:33
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.

2 participants