-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Build-only dependencies are listed as required runtime dependencies #5125
Comments
I tried the latest Windows wheel for Python 3.9 at http://www.open3d.org/docs/latest/getting_started.html#development-version-pip and it's
But I'm not sure if that will translate to https://pypi.org/pypi/open3d/json once a new version is published? |
Somewhat related to #4535 |
This should be fixed by |
For discussion about why the JSON API cannot currently support wheels that have different dependencies depending on the platform, see: |
It looks like the ideal here is for Open3d to use markers (e.g. |
Here is a WIP PR to address this: #5027 |
Hi @johnthagen a workaround for your specific use case (minimum docker image size) is to just remove any Open3D dependencies that your code does not need after installing Open3D. This may need some trial and error, depending on which Open3D functions you use. |
Edit: I remembered that this was about non-used build-only dependencies. You are correct that it could be possible to try to manually uninstall these dependencies through trial and error.
|
Checklist
master
branch).Describe the issue
I am trying to add Open3D to a production application. In this application we are trying to minimize the resulting Docker image size and number of transitive dependencies. Open3D currently seems to publish several build dependencies as runtime dependencies.
Steps to reproduce the bug
A small number of packages are installed:
This matches what is expected from
Open3D/python/requirements.txt
Line 1 in 25da5cc
And
But the downloading a Windows wheel and inspecting
METADATA
:There appear to be build time requirements, as listed in
Open3D/python/pyproject.toml
Line 2 in 25da5cc
These seem to be leaked out into the packages overall dependencies and cause tools such as Poetry to lock these build dependencies and install them even outside Windows onto mac and Linux.
See: https://pypi.org/pypi/open3d/json
Expected Behavior
jupyterlab
and other build time dependencies would not be published as runtime dependencies. If they are in fact needed for Windows operation, that they be marked as Windows-only so tools such as Poetry will not install the outside of Windows.Open3D, Python and System information
The text was updated successfully, but these errors were encountered: