Skip to content

Commit

Permalink
pypi: add a wildcard explicitly to match submodules
Browse files Browse the repository at this point in the history
The directory tdx in cctrusted_base does not build to the package since
that parent package is matched by the pattern will not dictate if the
submodule will be included or excluded from the distribution. We need
to add a wildcard in the pattern to match submodules explicitly.

Reference:
https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

Signed-off-by: Xiaocheng Dong <xiaocheng.dong@intel.com>
  • Loading branch information
dongx1x authored and Ruoyu-y committed Jan 12, 2024
1 parent 391451c commit b782b4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where=["."]
include=["cctrusted_base"]
include=["cctrusted_base*"]
2 changes: 1 addition & 1 deletion vmsdk/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where=["."]
include=["cctrusted_vm"]
include=["cctrusted_vm*"]

0 comments on commit b782b4a

Please sign in to comment.