Skip to content

Commit

Permalink
Writing to /etc from data_files is not allowed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Oct 27, 2023
1 parent 870589e commit a81a8f1
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,6 @@ def create_mo_files():
if files:
datafiles.append((root, [os.path.join(root, f) for f in files]))

# disable shipping apparmor profiles until they work in ubuntu (#128)
if distro != "Ubuntu":
if not hasattr(sys, "real_prefix"):
# we're not in a virtualenv, so we can probably write to /etc
datafiles += [
(
"/etc/apparmor.d/",
["apparmor/torbrowser.Browser.firefox", "apparmor/torbrowser.Tor.tor"],
),
(
"/etc/apparmor.d/local/",
[
"apparmor/local/torbrowser.Browser.firefox",
"apparmor/local/torbrowser.Tor.tor",
],
),
("/etc/apparmor.d/tunables/", ["apparmor/tunables/torbrowser"]),
]

datafiles += [(os.path.dirname(f), [f]) for f in create_mo_files()]

setup(
Expand Down

0 comments on commit a81a8f1

Please sign in to comment.