Skip to content

Question: does meson-python support python namespaces #582

Answered by rgommers
matteoaletti asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @matteoaletti. I'm not 100% sure, but I think that using namespace packages shouldn't be a problem. We don't have a specific test for it, but if you look at https://packaging.python.org/en/latest/guides/packaging-namespace-packages/, then you'll see that all there is to it (from a package build perspective) is having a top-level directory without an __init__.py in it. And since Meson lets you explicitly control which files to install and to where, I would not expect any interesting differences between a regular and a namespace package.

I don't quite know what [tool.setuptools.packages.find] does - probably some remapping of install directories? Do you know, and can you share your code?…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by matteoaletti
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@dnicolodi
Comment options

@benoit9126
Comment options

@benoit9126
Comment options

@dnicolodi
Comment options

@benoit9126
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #581 on February 28, 2024 08:35.