-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support relative package
include
s using explicit destination paths
#4583
Comments
package
includes using explicit destination paths
package
includes using explicit destination pathspackage
includes using explicit destination paths
package
includes using explicit destination pathspackage
include
s using explicit destination paths
Migrating discussion from #5273 here -- this feature (specifically, the
|
I'd also add:
|
I wonder how such a feature behaves for editable installations e.g. on |
Might be able to use .pth files to do some clever symlink-like trickery? Perhaps by having the .pth look something like:
and have the package_name-includes folder be the root of the where 'to' is? (Note sure if naming it just package_name would work. Not sure if this is even a good idea, see "Alternatively" below.)
Alternatively |
Feature Request
I am packaging a web application (https://github.com/RaitoBezarius/netbox) using Poetry for Nix/NixOS platforms (https://github.com/RaitoBezarius/nixexprs/blob/master/pkgs/python-packages/netbox/default.nix).
I am trying to include
netbox/utilities/templates
under the packageutilities
so that thesite-packages
containsutilities/templates
, unfortunately, neither the documentation (oninclude
/packages
) neither #2015 seems to imply this is possible at all.In the current case, adding
netbox/utilities/templates/**/*
toinclude
array adds the data inside the "default" module (netbox
) so that it looks likesite-packages/netbox/utilities/templates
instead ofsite-packages/utilities/templates
.This scenario is quite classical in a Django application, which bundles its own templates inside its own package.
In this case, the developers made an orthodox structure à la
src/
and relies on the fact there is no top-level module (or namespace) to manage everything, so it makes the packaging unnatural to stuff that Poetry is used to process.Supporting it would make it easier to package these legacy applications and would be an awesome addition.
I would have two proposals to enable this:
{ from = "...", to = "..." }
syntax ininclude
to have perfect control, with sensible formats ofto
so it can be a bit flexible?Thank you again for your awesome work, and, please let me know your thoughts on this.
The text was updated successfully, but these errors were encountered: