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

Create a namespace for augmenting existing modules #11

Open
obriencj opened this issue Aug 7, 2017 · 2 comments
Open

Create a namespace for augmenting existing modules #11

obriencj opened this issue Aug 7, 2017 · 2 comments

Comments

@obriencj
Copy link
Owner

obriencj commented Aug 7, 2017

Create an empty namespace package sibilant.site

Example 1, a sibilant.site.requests module might provide macros for dealing with the requests library.

Example 2, sibilant.site.argparse might define a DSL for specifying command-line arguments.

@obriencj
Copy link
Owner Author

obriencj commented Aug 8, 2017

Use a native namespace package as per PEP-420
and the Packaging Namespace Packages Guide

Thus a directory sibilant/site/

This can contain .lspy and .py files (just not an init.lspy or init.py) named after existing packages. It can also be added to by separate eggs.

@obriencj
Copy link
Owner Author

obriencj commented Aug 8, 2017

However, until such time as I have at least a single augmented module, setuptools doesn't support completely empty PEP-420 namespaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant