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

[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,
    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

Received on 2008-10-02 02:21:39 CEST

This is an archived mail posted to the Subversion Dev mailing list.