projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd196b
)
uninstalled: Avoid failling while setting up PyGObject env hack files
author
Thibault Saunier
<tsaunier@igalia.com>
Mon, 23 Jul 2018 15:11:03 +0000
(11:11 -0400)
committer
Thibault Saunier
<tsaunier@igalia.com>
Mon, 23 Jul 2018 15:11:03 +0000
(11:11 -0400)
gst-uninstalled.py
patch
|
blob
|
history
diff --git
a/gst-uninstalled.py
b/gst-uninstalled.py
index
e28f3c7
..
a62eac6
100755
(executable)
--- a/
gst-uninstalled.py
+++ b/
gst-uninstalled.py
@@
-1,6
+1,7
@@
#!/usr/bin/env python3
import argparse
+import contextlib
import json
import os
import platform
@@
-186,6
+187,9
@@
def python_env(options, unset_env=False):
elif not os.path.exists(sitepackages):
os.makedirs(sitepackages)
+ with contextlib.suppress(FileNotFoundError):
+ os.remove(sitecustomize)
+ os.remove(mesonconfig_link)
os.symlink(overrides_hack, sitecustomize)
os.symlink(mesonconfig, mesonconfig_link)
return os.path.realpath(sitecustomize) == overrides_hack