Skip to content

Update spt3g dependency#204

Draft
tskisner wants to merge 10 commits intomasterfrom
update_spt3g
Draft

Update spt3g dependency#204
tskisner wants to merge 10 commits intomasterfrom
update_spt3g

Conversation

@tskisner
Copy link
Member

The upstream code has modernized the way its compiled extensions are built and imported. This work brings so3g up to date with those changes:

  • Build python extensions with cmake rather than building libraries and manually dlopening them.

  • Clean up imports throughout the codebase. Absolute imports of "so3g" are removed and replaced by relative imports from the internal submodules or from the compiled extension. Also clean up linter warnings.

  • Add a new github workflow that runs tests by building within a conda environment to get all dependencies and runs tests on a selection of python versions and linux/mac.

  • When building wheels, only build the 3 components of boost that we need.

  • After consultation with @mhasself and @BrianJKoopman, remove all docker support files that are no longer used. Encode the upstream version of spt3g directly in setup.py (rather than the Dockerfile).

This work supercedes #192, which will be closed.

tskisner added 10 commits April 1, 2025 18:10
upstream code has modernized the way its compiled extensions are built and
imported.  Changes include:

- Build python extensions with cmake rather than building libraries and
  manually dlopening them.

- Clean up imports throughout the codebase.  Absolute imports of "so3g"
  are removed and replaced by relative imports from the internal submodules
  or from the compiled extension.  Also clean up linter warnings.

- Add a new github workflow that runs tests by building within a conda
  environment to get all dependencies and runs tests on a selection of
  python versions and linux/mac.

- When building wheels, only build the 3 components of boost that we need.

- After consultation with @mhasself and @BrianJKoopman, remove all docker
  support files that are no longer used.  Encode the upstream version of
  spt3g directly in setup.py (rather than the Dockerfile).
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.

Reconsider use of Docker images

1 participant