Skip to content

BUG: WriteYamlFile.py relies on tightly coupled relative imports from yamlphreeqcrm #216

Description

@scharlton2

Description

There is a tight coupling in the directory structure requirements for the Python bindings. Currently, WriteYamlFile.py requires yamlphreeqcrm.py to be located in the exact same directory to function correctly, rather than properly utilizing the installed phreeqcrm package namespace.

If yamlphreeqcrm.py is moved or packaged normally, the imports break.

Proposed Changes / Solutions

To make the Python bindings more robust and standard, the file layout and build system need to be refactored:

  • Restructure Python Package Layout: Consider moving or bundling swig/python/yamlphreeqcrm.py so that its placement aligns logically with the main package initialization file (src/phreeqcrm/__init__.py).
  • Update Build Configurations: The build scripts must be updated to reflect any directory changes and ensure the files are installed correctly together. This will require updates to:
  • CMakeLists.txt
  • Makefile.am

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions