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

Destination path in data_files is absolute #12

Closed
allstrive opened this issue May 19, 2023 · 1 comment
Closed

Destination path in data_files is absolute #12

allstrive opened this issue May 19, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@allstrive
Copy link

I have a config that looks like this

[tool.blix.data]
data_files = [
    { destination = "/etc/jupyter/jupyter_server_config.d/", from = [ "jupyter-config/jupyter_server_config.d/jupyter_workspace_extensions.json" ] },
]

When I run poetry blixbuild I get the error

Destination path in data_files [/etc/jupyter/jupyter_server_config.d/] is absolute.  Please change it to a relative path

I need to copy the config file to /etc , which will always be absolute path, how do I achieve capability using this plugin ?

@spoorn
Copy link
Owner

spoorn commented May 28, 2023

Absolute paths aren't supported for data_files. This isn't specific to poeblix. There's a long thread related to this for wheel: pypa/wheel#92

And the same limitations are there with setup.py: https://docs.python.org/3/distutils/setupscript.html#installing-additional-files

@spoorn spoorn closed this as completed May 28, 2023
@spoorn spoorn added the wontfix This will not be worked on label May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants