Commit b345b110 authored by Guillaume Seguin's avatar Guillaume Seguin

Switch default prefix to sys.prefix in setup.py

parent 56a00a7d
......@@ -111,7 +111,7 @@ if len (sys.argv) > 2:
if not prefix and "PREFIX" in os.environ:
prefix = os.environ["PREFIX"]
if not prefix or not len (prefix):
prefix = "/usr/local"
prefix = sys.prefix
if sys.argv[1] in ("install", "uninstall") and len (prefix):
sys.argv += ["--prefix", prefix]
......
Markdown is supported
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