summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'modules/python.uselect')
-rw-r--r--modules/python.uselect21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/python.uselect b/modules/python.uselect
new file mode 100644
index 0000000..79df588
--- /dev/null
+++ b/modules/python.uselect
@@ -0,0 +1,21 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# python.uselect mephx.x@gmail.com
+
+module python {
+ description "Python Version Switcher"
+ version "0.1"
+ author "mephx.x@gmail.com"
+} python
+
+user action bin {
+ description "Change Python's Version"
+ type sym
+ sym python /usr/bin/python /usr/bin/ python([0-9]+\.[0-9]+$) *
+} bin
+
+system action config {
+ description "Change Python's /usr/bin/python-config Version"
+ type sym
+ sym python /usr/bin/python-config /usr/bin/ python([0-9]+\.[0-9]+)-config($) *
+} config