[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Add the ability to retrieve the Python site-packages location to build/get-py-info.py

From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 1 Oct 2008 19:19:12 -0700

+1

2008/10/1 Jeremy Whitlock <jcscoobyrs_at_gmail.com>:
> Hi All,
> Attached, and pasted below, is a patch that adds the ability to
> retrieve the Python site-packages location to build/get-py-info.py.
> This will be used by the ctypesgen.m4 ac-macro to add ctypes-python to
> the Subversion build infrastructure. Please let me know if there is
> anything I can do to get this approved.
>
> --
> 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()
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: dev-help_at_subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-02 04:19:29 CEST

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.