Commit f1f98aaa authored by Ian Bruene's avatar Ian Bruene
Browse files

Build script switches to site-packages on user install if necessary

This fixes the FHS violation in bug #414
parent 2052ed6c
Pipeline #14756559 passed with stages
in 16 minutes and 6 seconds
......@@ -11,6 +11,14 @@ def configure(conf):
fixed.load('python')
fixed.check_python_version((2, 6, 0))
conf.check_python_headers(features='pyext') # Extension-only, no embedded
# Library directory hack, dist-packages is what python reports.
# That is reserved by the FHS, we have to use site-packages for user
# installs. Distribution installs can use dist-packages.
if "/usr/local/" in conf.env.PYTHONDIR:
if "dist-packages" in conf.env.PYTHONDIR:
conf.env.PYTHONDIR = conf.env.PYTHONDIR.replace("dist", "site")
if "dist-packages" in conf.env.PYTHONARCHDIR:
conf.env.PYTHONARCHDIR = conf.env.PYTHONARCHDIR.replace("dist", "site")
def build(ctx):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment