https://github.com/activestate/pythonselect
A tool to set current Python version (currently MacOSX only)
https://github.com/activestate/pythonselect
Last synced: about 1 year ago
JSON representation
A tool to set current Python version (currently MacOSX only)
- Host: GitHub
- URL: https://github.com/activestate/pythonselect
- Owner: ActiveState
- Created: 2010-07-21T23:21:21.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2011-06-22T23:32:37.000Z (about 15 years ago)
- Last Synced: 2025-04-13T18:08:22.930Z (about 1 year ago)
- Language: Python
- Homepage: http://pypi.python.org/pypi/pythonselect
- Size: 922 KB
- Stars: 15
- Watchers: 51
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
pythonselect
============
pythonselect is a tool to set the current Python version; it is included with
`ActivePython`_. If you have multiple Python versions installed - say, 2.6, 2.7
and 3.1 - then running the following will set Python 2.7 to be your current
Python:
::
$ sudo pysel 2.7
or
C:\> pysel 2.7
How does it work?
-----------------
On **OSX**, pythonselect creates symlinks in ``/usr/local/bin`` (hence ``sudo``
is required) linking to appropriate binaries in your non-system framework Python
install at ``/Library/Frameworks/Python.framework``.
On **Windows**, pythonselect manipulates the system ``%PATH%`` environment
variable, `AppPath`_ and .py/.pyw associations. You will have to launch a new
Command Prompt. Windows support is **experimental**. Note that on Vista and
Windows 7, ``pysel`` must be run from an Administrator Command Window.
Credits
-------
pythonselect is originally based on Komodo_'s internal `set-curr-python.py`_.
Roadmap
-------
Linux support is on the horizon.
.. _ActivePython: http://activestate.com/activepython/downloads
.. _Komodo: http://www.activestate.com/komodo/
.. _`set-curr-python.py`: http://svn.openkomodo.com/openkomodo/view/openkomodo/trunk/mozilla/support/set-curr-python.py
.. _AppPath: http://msdn.microsoft.com/en-us/library/ee872121(v=vs.85).aspx#app_exe