Skip to content
Snippets Groups Projects

Draft: Move installed python modules in /usr/ folder

Closed Cresson Remi requested to merge move_python_packages_usr into develop
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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
  • closed

  • Please register or sign in to reply
    Loading