Open larrybradley opened 1 year ago
https://github.com/spacetelescope/stregion/pull/11 fixes the build issue with Python 3.12.
This issue is tracked on JIRA as HLA-1162.
Why was this closed? I don't see where stregion
was replaced with astropy/regions
.
https://github.com/spacetelescope/drizzlepac/blob/main/pyproject.toml#L31
Sorry @larrybradley, you're right. It seems that we fixed the build issue, but there is still stregion code in drizzlepac. We are now tracking that with issue #1742 which is also tracked on JIRA. Thanks for reminding me to add a note here.
Comment by Nadia Dencheva on JIRA:
Some notes from Mihai who developed this code originally:
I think it would be a major work to switch to astropy regions. Also, it may not be possible to do what pyregions could do with astropy/regions (at least at the beginning, they did not handle distortions and didn’t care about them – that’s why I decided to keep using pyregions/stregions). Maybe things have changed, but one needs to investigate this.```
The
spacetelescope/stregion
dependency is a frozen copy ofspacetelescope/pyregion
, which in turn is a frozen copy ofastropy/pyregion
, which has not been maintained for many years. Theastropy/pyregion
package has been superseded by theastropy/regions
package (I am the maintainer). Theregions
API is different frompyregion
, but it should have all the features thatdrizzlepac
needs.This is an issue because
spacetelescope/stregion
cannot be built with Python 3.12.