Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[morpheus-refactor] Move morpheus source to python/morpheus #1836

Merged
merged 15 commits into from
Aug 13, 2024

Conversation

AnuradhaKaruppiah
Copy link
Contributor

Description

This is the first PR to update the source layout. It moves the morpheus source code to a new sub-tree that will allow breaking out morpheus functional blocks from the morpheus-base -

.
|___ CMakeLists.txt
|___ python
|    |___ CMakeLists.txt
|    |___ morpheus
|    |    |___ CMakeLists.txt
|    |    |___ setup.py
|    |    |___ setup.cfg
|    |    |___ MANIFEST.in
|    |    |___ morpheus
|    |    |    |___ __init__.py
|    |    |    |___ _lib
|    |    |    |___ etc.
|    |___ morpheus_N

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah AnuradhaKaruppiah requested review from a team as code owners August 8, 2024 00:50
Copy link

copy-pr-bot bot commented Aug 8, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@AnuradhaKaruppiah AnuradhaKaruppiah added feature request New feature or request non-breaking Non-breaking change labels Aug 8, 2024
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

Copy link
Contributor

@dagardner-nv dagardner-nv left a comment

Choose a reason for hiding this comment

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

LGTM, my main question is, are in-place python installs still supported? How does it work?

Copy link
Contributor

@cwharris cwharris left a comment

Choose a reason for hiding this comment

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

lgtm

@AnuradhaKaruppiah
Copy link
Contributor Author

LGTM, my main question is, are in-place python installs still supported? How does it work?

That is a good question. The install is per-functional block. For eg. if you were setting up a dev env it would look something like this -

cd $MORPHEUS_ROOT
pip install -e python/morpheus
pip install -e python/morpheus_N  # hypothetical functional block

@dagardner-nv dagardner-nv added the conda-build Enables running the conda-build step on a PR label Aug 9, 2024
Tested with -
1. configure cmake with -DMORPHEUS_BUILD_DOCS=ON
2. cmake --build build --target morpheus_docs

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
This is to reflect the new directory structure python/morpheus

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

1 similar comment
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

This may need to re-evaluated as config needs to run accross all the
python modules

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
This change is being done to resolve these errors -
************* Module setup
python/morpheus/setup.py:1:0: R0401: Cyclic import (morpheus.messages -> morpheus.messages.multi_message -> morpheus.messages.message_base) (cyclic-import)
python/morpheus/setup.py:1:0: R0401: Cyclic import (morpheus.messages -> morpheus.messages.multi_message -> morpheus.messages.message_meta -> morpheus.messages.message_base) (cyclic-import)
python/morpheus/setup.py:1:0: R0401: Cyclic import (morpheus.messages -> morpheus.messages.multi_inference_message -> morpheus.messages.message_meta -> morpheus.messages.message_base) (cyclic-import)
python/morpheus/setup.py:1:0: R0401: Cyclic import (morpheus.messages -> morpheus.messages.multi_tensor_message -> morpheus.messages.message_meta -> morpheus.messages.message_base) (cyclic-import)
python/morpheus/setup.py:1:0: R0401: Cyclic import (morpheus.messages -> morpheus.messages.multi_ae_message -> morpheus.messages.multi_message -> morpheus.messages.message_base) (cyclic-import)
python/morpheus/setup.py:1:0: R0401: Cyclic import (morpheus.messages -> morpheus.messages.multi_tensor_message -> morpheus.messages.memory.tensor_memory -> morpheus.messages.message_base) (cyclic-import)
python/morpheus/setup.py:1:0: R0401: Cyclic import (morpheus.messages -> morpheus.messages.memory.inference_memory -> morpheus.messages.memory.tensor_memory -> morpheus.messages.message_base) (cyclic-import)
python/morpheus/setup.py:1:0: R0401: Cyclic import (morpheus.messages -> morpheus.messages.memory.response_memory -> morpheus.messages.memory.tensor_memory -> morpheus.messages.message_base) (cyclic-import)
python/morpheus/setup.py:1:0: R0401: Cyclic import (morpheus.messages -> morpheus.messages.multi_response_message -> morpheus.messages.multi_tensor_message -> morpheus.messages.message_meta -> morpheus.messages.message_base) (cyclic-import)

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

1 similar comment
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

@AnuradhaKaruppiah
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 4e3edb9 into nv-morpheus:branch-24.10 Aug 13, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conda-build Enables running the conda-build step on a PR feature request New feature or request non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants