Changing the Python installation used by Squish binary packages

Last edited on

General

It is possible to configure a Squish installation to use an external Python interpreter.
The installation has to contain the support (plugin) for the particular Python version number of the external interpreter.

The script linked below

PythonChanger.py

can update the Python of the package it is run in automatically. For this it should be executed from the root directory of the Squish Installation (where the uninstall is), using the Python Interpreter that the package should be using. The script can be copied to the install directory of Squish or the working directory of the shell must be there.

Suppose the Python interpreter is in %USERPROFILE%\AppData\Local\Programs\Python\Python38, then the command line executed in a cmd shell from the install directory of Squish would look like this :

"%USERPROFILE%\AppData\Local\Programs\Python\Python38\python.exe" PythonChanger.py

The script also works for Linux and Mac. On those systems you have most likely symbolic links setup, so the command below

python3.8 PythonChanger.py

This script only works for installs of Squish created from binary installers that are downloaded from our download area.

Supported Python Versions

This script requires that the major and minor versions of your desired Python match a version that Squish already supports (Python 2.7 or Python 3.8, in the case of Squish 6.6). If you wish to use Squish with a version of Python that is different (Python 3.7 or Python 3.6, for example), a custom build of Squish must be made. Contact support and include your buildinfo.txt and desired Python version, to get a compatible build of Squish made for you.

The script can not be used for Python virtual environments.

Linux

Pydev Interpreters

The interpreter settings in the IDE do not need to be changed for this from SquishIDE's settings.