Project

General

Profile

Bug #17082

Use a consistent, standard directory for Python packages

Added by segfault 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Low
Assignee:
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:

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 #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.


Related issues

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

Associated revisions

Revision 7cbcd4bc (diff)
Added by segfault 5 months ago

Use a consistent, standard Python packages directory (refs: #17082)

Revision 2f42bc49
Added by intrigeri 5 months ago

Merge remote-tracking branch 'origin/bugfix/17082-use-consistent-python-packages-dir' into devel (refs: #17082)

Revision a117660a (diff)
Added by segfault 5 months ago

Use a consistent, standard Python packages directory (refs: #17082)

Revision b4f423e0 (diff)
Added by segfault 5 months ago

Use a consistent, standard Python packages directory (refs: #17082)

Revision 92579ba7 (diff)
Added by segfault 5 months ago

Remove obsolete path from PYTHONPATH (refs: #17082)

This partly reverts commit 718a64cb66158d117a7d564ee460f15528507f92.

We moved our Python packages from the non-standard
/usr/local/lib/python3 directory to the standard /usr/lib/python3
directory, so we don't have to set the PYTHONPATH anmore.

Revision 8974d4cf
Added by intrigeri 5 months ago

Merge remote-tracking branch 'origin/bugfix/17082-use-consistent-python-packages-dir' into devel (Closes: #17082)

History

#1 Updated by segfault 5 months ago

  • Status changed from Confirmed to In Progress

#2 Updated by segfault 5 months ago

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

#3 Updated by intrigeri 5 months ago

#4 Updated by intrigeri 5 months ago

#5 Updated by intrigeri 5 months ago

#6 Updated by intrigeri 5 months ago

Blocks Feature #16209: Core work: Foundations Team added

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

#7 Updated by segfault 5 months ago

  • 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 5 months ago

  • Assignee set to intrigeri

#9 Updated by intrigeri 5 months ago

  • Status changed from Needs Validation to In Progress

#10 Updated by intrigeri 5 months ago

  • Assignee changed from intrigeri to segfault

Merged!

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

#11 Updated by segfault 5 months ago

intrigeri wrote:

Merged!

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

Yes, lets revert that one.

#12 Updated by segfault 5 months ago

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

Done on the feature branch.

#13 Updated by intrigeri 5 months ago

  • Assignee set to intrigeri

#14 Updated by intrigeri 5 months ago

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

Also available in: Atom PDF