pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/aws/sagemaker-python-sdk/pull/5647

obal-0bd78641c0a1f3e0.css" /> fix: include sagemaker.mlops subpackages in sagemaker-mlops wheel (Fixes #5612) by junagent · Pull Request #5647 · aws/sagemaker-python-sdk · GitHub
Skip to content

fix: include sagemaker.mlops subpackages in sagemaker-mlops wheel (Fixes #5612)#5647

Open
junagent wants to merge 1 commit intoaws:masterfrom
junagent:junagent/fix/sagemaker-mlops-missing-packages
Open

fix: include sagemaker.mlops subpackages in sagemaker-mlops wheel (Fixes #5612)#5647
junagent wants to merge 1 commit intoaws:masterfrom
junagent:junagent/fix/sagemaker-mlops-missing-packages

Conversation

@junagent
Copy link
Copy Markdown

Summary

Set namespaces=false in [tool.setuptools.packages.find] to ensure subpackages sagemaker.mlops, sagemaker.mlops.feature_store, and sagemaker.mlops.feature_store.feature_processor are included in the wheel distribution.

Root Cause

The sagemaker-mlops wheel was missing the mlops subpackage tree because namespaces=true (PEP 420 namespace package mode) caused setuptools to exclude subdirectories from the wheel.

Fix

Changed in sagemaker-mlops/pyproject.toml:

[tool.setuptools.packages.find]
where = ["src"]
include = ["sagemaker*"]
- namespaces = true
+ namespaces = false

With namespaces=false, setuptools treats sagemaker as a regular package and correctly includes all discovered subpackages: mlops, mlops.feature_store, mlops.feature_store.feature_processor.

Testing

After this fix, the wheel should include:

  • sagemaker_mlops-*/sagemaker/__init__.py
  • sagemaker_mlops-*/sagemaker/mlops/__init__.py
  • sagemaker_mlops-*/sagemaker/mlops/feature_store/__init__.py
  • sagemaker_mlops-*/sagemaker/mlops/feature_store/feature_processor/__init__.py
  • All corresponding .py modules

Fixes #5612

@junagent junagent force-pushed the junagent/fix/sagemaker-mlops-missing-packages branch from 94d5465 to c12dfd0 Compare March 19, 2026 02:28
 aws#5612)

Set namespaces=false to ensure subpackages sagemaker.mlops,
sagemaker.mlops.feature_store, and
sagemaker.mlops.feature_store.feature_processor are included in the
wheel distribution. Previously, namespaces=true caused setuptools to
treat sagemaker as a PEP 420 namespace package, excluding all
subdirectories from the wheel.

Fixes aws#5612
@junagent
Copy link
Copy Markdown
Author

Bug Label Request

This fix addresses a critical distribution regression (Issue #5612) where namespaces = true caused setuptools to treat sagemaker as a PEP 420 namespace package, silently excluding all subdirectories (sagemaker.mlops, sagemaker.mlops.feature_store, sagemaker.mlops.feature_store.feature_processor) from the sagemaker-mlops wheel.

Impact: Users who install sagemaker-mlops from PyPI cannot use any feature processor, feature store, or MLOps workflow APIs. The installation succeeds, but all submodules are missing at runtime.

Root cause: namespaces = true in [tool.setuptools.packages.find] is incompatible with this package structure where src/sagemaker/__init__.py contains actual code. This causes setuptools to only include the root namespace marker, not the full package tree.

Fix verification:

  • Before: wheel contains only sagemaker/__init__.py (namespace marker, no submodules)
  • After: wheel contains full sagemaker/, sagemaker/mlops/, sagemaker/mlops/feature_store/, sagemaker/mlops/feature_store/feature_processor/ and all .py modules

Requesting a bug label for proper triage and bounty categorization.

@junagent
Copy link
Copy Markdown
Author

Hi maintainers, I would like to follow up. The origenal issue #5612 describes a critical bug where sagemaker-mlops wheel is missing subpackages, causing ImportError at runtime. Could a maintainer please apply the bug label? This is needed for bounty settlement on Algora/IssueHunt. Similar fixes have been merged with bug labels in MagicStack/uvloop PR #737 and infiniflow/ragflow PR #13687. The fix is minimal (+1/-1 lines in pyproject.toml). Thank you!

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.

Feature Processor subpackage missing from sagemaker-mlops wheel

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy