-
Notifications
You must be signed in to change notification settings - Fork 0
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
Poetry-built wheels pollute users' site-packages/
directory
#12
Comments
A possible workaround is to use a The current project structure appears as below: (collapsed)
Which would need to be amended to: (collapsed)
The implementation for the wheel would look like this in the pyproject.toml: [tool.poetry]
packages = [
# Redirect poetry to staging area for wheel distribution:
{ include = "ocebuild", from = "dist/staging", format = "wheel" }
] Although it remains unclear whether to handle this sooner in the sdist preparation rather than redirecting for the wheel. |
An alternate sdist tree can still be built with the use of poetry's undocumented build hooks (i.e. For example, this hook can point to a
|
Currently blocked by Poetry's include/exclude paths behavior for the build wheel. The current behavior with Poetry's include/exclude paths works as expected including files for the sdist destination, but not for the wheel destination.
Related issues in tracking:
package
include
s using explicit destination paths python-poetry/poetry#4583)The output paths in the wheel appear to be determined by the relative paths of included directories from the root pyproject.toml file, which if containing files located in the project root will pollute the user's
site-packages/
andsite-packages/resources
directories upon installation!Additionally, currently suggested workarounds like symlinks aren't compatible between Windows and macOS/Linux environments.
The text was updated successfully, but these errors were encountered: