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

install namespace package #15

Open
jmorten opened this issue Jan 7, 2020 · 1 comment
Open

install namespace package #15

jmorten opened this issue Jan 7, 2020 · 1 comment

Comments

@jmorten
Copy link

jmorten commented Jan 7, 2020

Is it possible to have a setup.py file in the native directory that installs both pkg_a and pkg_b? If so, what would that look like?

something like

native
    |-- setup.py
    |-- pkg_a
        |-- example_pkg/a
        |-- setup.py
    |-- pkg_b
        |-- example_pkg/b
        |-- setup.py

Thank you.

@chrysle
Copy link
Contributor

chrysle commented Nov 25, 2023

Yes, of course you can install all the namespace packages at once from outside, but they'd just behave like regular packages. The pyproject.toml/setup.py file would normally be in the project root directory, but of course you could
also place it under native/.

You wouldn't be able to import from the same namespace, though, instead:

from native.pkg_a.example_pkg import a
from native.pkg_b.example_pkg import b

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

No branches or pull requests

2 participants