Bug #17082

Use a consistent, standard directory for Python packages

Added by segfault 2019-09-22 16:33:30 . Updated 2019-10-04 06:49:49 .

Status:
Resolved
Priority:
Low
Assignee:
intrigeri
Category:
Target version:
Start date:
Due date:
% Done:

100%

Feature Branch:
bugfix/17082-use-consistent-python-packages-dir
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

We used to ship our own Python packages in /usr/local/lib/python3. This is a non-standard Python directory, which has caused issues before. It also caused issues when I tried to move tailslib there in Feature #16935, which I moved it to /usr/lib/python3 instead.

This change has now been merged into devel, which means that currently we put Python packages into different directories for no apparent reason. I suggest that we move all of them to /usr/lib/python3.


Subtasks


Related issues

Blocks Tails - Feature #16209: Core work: Foundations Team Confirmed

History

#1 Updated by segfault 2019-09-22 16:47:31

  • Status changed from Confirmed to In Progress

Applied in changeset commit:tails|7cbcd4bc1d61fe0abe240cd8d12aac1138d353e5.

#2 Updated by segfault 2019-09-22 16:47:52

  • Feature Branch set to bugfix/17082-use-consistent-python-packages-dir

#3 Updated by intrigeri 2019-09-23 08:39:00

#4 Updated by intrigeri 2019-09-23 08:39:05

#5 Updated by intrigeri 2019-09-23 08:39:09

#6 Updated by intrigeri 2019-09-23 08:40:22

> Blocks Feature Feature #16209: Core work: Foundations Team added

Rationale: such consistency will avoid making our code base harder to maintain.

#7 Updated by segfault 2019-09-23 13:47:44

  • Status changed from In Progress to Needs Validation
  • Assignee deleted (segfault)

Built and tested that the two packages that were moved (tailsgreeter and unlock_veracrypt_volumes) still work.

#8 Updated by intrigeri 2019-09-29 14:16:41

  • Assignee set to intrigeri

#9 Updated by intrigeri 2019-09-29 14:32:27

  • Status changed from Needs Validation to In Progress

Applied in changeset commit:tails|2f42bc490ed0ce990725d54bdb6785cc03186d50.

#10 Updated by intrigeri 2019-09-29 14:34:43

  • Assignee changed from intrigeri to segfault

Merged!

segfault, shall we revert commit:718a64cb66158d117a7d564ee460f15528507f92 or is PYTHONPATH=/usr/local/lib/python3/dist-packages still needed in the environment?

#11 Updated by segfault 2019-10-03 15:31:24

intrigeri wrote:
> Merged!
>
> segfault, shall we revert commit:718a64cb66158d117a7d564ee460f15528507f92 or is PYTHONPATH=/usr/local/lib/python3/dist-packages still needed in the environment?

Yes, lets revert that one.

#12 Updated by segfault 2019-10-03 15:35:54

  • Status changed from In Progress to Needs Validation
  • Assignee deleted (segfault)

Done on the feature branch.

#13 Updated by intrigeri 2019-10-04 06:47:31

  • Assignee set to intrigeri

#14 Updated by intrigeri 2019-10-04 06:49:49

  • Status changed from Needs Validation to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:tails|8974d4cf84e9e00e6d955f61c91c53245c473ffa.