Skip to content

Add site-packages to pyioda and pyiodautils install directories - #19

Open
rickgrubin-tomorrow wants to merge 4 commits into
JCSDA:developfrom
rickgrubin-tomorrow:python_install_dir
Open

rickgrubin-tomorrow wants to merge 4 commits into
JCSDA:developfrom
rickgrubin-tomorrow:python_install_dir

Conversation

@rickgrubin-tomorrow

Copy link
Copy Markdown

Description

Add directory site-packages to pyiodautils install directory.

The pathing is a core design standard and supported by PEP 405 and PEP 427.

This change will also allow spack package recipes to set PYTHONPATH when creating module files.

Checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have run the unit tests before creating the PR

@srherbener

Copy link
Copy Markdown
Collaborator

@rickgrubin-tomorrow thanks for submitting this fix. Let's review here in the public ioda repo. When this PR is ready for merge, I will clone this PR in the internal ioda repo and do the merge there. That should sync back up here in the public repo so you can have access. Once that occurs we can then close this PR.

@srherbener srherbener left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding this and fixing it. I completely agree with moving to the "site-packages" subdirectory.

Just want to check: there is another ioda python library called "pyioda" that is also not being installed in the "site-packages" subdirectory. Should this one also be moved?

# AddPyLib will set the target file for _ioda_python to the subdirectory:
#
# lib/${pyver}/pyioda/ioda/_ioda_python.* # .* is the appropriate system suffix for
# # a shared library
#

We may need help/advice from @rhoneyager-tomorrow concerning pyioda.

@rickgrubin-tomorrow

Copy link
Copy Markdown
Author

Thanks for finding this and fixing it. I completely agree with moving to the "site-packages" subdirectory.

Just want to check: there is another ioda python library called "pyioda" that is also not being installed in the "site-packages" subdirectory. Should this one also be moved?

# AddPyLib will set the target file for _ioda_python to the subdirectory:
#
# lib/${pyver}/pyioda/ioda/_ioda_python.* # .* is the appropriate system suffix for
# # a shared library
#

We may need help/advice from @rhoneyager-tomorrow concerning pyioda.

Thanks @srherbener I missed this one -- this pathing should also be

AddPyLib(_ioda_python ioda ${pyver}/site-packages)

@rickgrubin-tomorrow rickgrubin-tomorrow changed the title Add site-packages to pyiodautils install directory Add site-packages to pyioda and pyiodautils install directories Oct 29, 2026

@srherbener srherbener left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fmahebert fmahebert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rickgrubin-tomorrow ; @srherbener I'll leave you to bring this into the internal repo.

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.

3 participants