[PATCH] Add the ability to retrieve the Python site-packages location to build/get-py-info.py
From: Jeremy Whitlock <jcscoobyrs_at_gmail.com>
Date: Wed, 1 Oct 2008 18:21:23 -0600
Hi All,
-- Take care, Jeremy Whitlock http://www.thoughtspark.org [[[ * 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()
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.