Linking packages - cma-open/cmatools GitHub Wiki

These example repos comprise a generic cmatools repo that contains a package, cli scripts and modules that may be useful across a range of other projects, and an example cmascience project that contains a package that uses the range of common code from the cmatools package.

These two packages are linked together during setup and installation with the following method, the setup.py file includes the following code:

    install_requires=[
                      "cmatools @ git+https://github.com/cma-open/cmatools",

Using this code at setup ensures the linked cmatools package is available for import and use.

This uses a PEP 508 URL, see here

Further work

Once python support is fully added to the github package features, then this may move to use that method instead of the above use within setup.