Draft: Move installed python modules in /usr/ folder
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
Filter activity
added Docker label
assigned to @remi.cresson
By Cresson Remi on 2023-05-26T10:21:48 (imported from GitLab)
79 79 # Installation 80 80 RUN cd tensorflow \ 81 81 && ./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg \ 82 && pip3 install --no-cache-dir --prefix=/opt/otbtf /tmp/tensorflow_pkg/tensorflow*.whl \ 83 && ln -s /opt/otbtf/local/lib/python3.*/* /opt/otbtf/lib/python3 \ I guess this is the part you wanted to change because it's a bit dirty.
The idea here was 1) everything we've built ends up in /opt and 2) you could build either with py38 or 310; packages would always be available trough the symlink /opt/otbtf/lib/python3, no matter the base image you're using.
But may be we could find a more elegant way to manage the py package location, it's just that it was an easy and quick trick at the time I wrote it.By Vincent Delbar on 2023-06-09T17:45:33 (imported from GitLab)
Edited by Cresson Remi
Please register or sign in to reply