[[[ * build/get-py-info.py: Add the ability to retrieve the Python site-packages location. ]]] Index: build/get-py-info.py =================================================================== --- build/get-py-info.py (revision 33389) +++ build/get-py-info.py (working copy) @@ -30,6 +30,7 @@ print(" --compile : return a compile command") print(" --link : return a link command") print(" --libs : return just the library options for linking") + print(" --site : return the path to site-packages") sys.exit(1) if len(sys.argv) != 2: @@ -146,4 +147,8 @@ print(" ".join(lib_options())) sys.exit(0) +if sys.argv[1] == '--site': + print sysconfig.get_python_lib() + sys.exit(0) + usage()