Hi,
it's possible to do what you want. You can modify your local
installation as follows:
- copy or move your python installation directory inside QGIS directory
- copy or move python25.dll from your c:\windows\system32 to QGIS directory
Now you must set PYTHONPATH appropriately - this actually is a
downside since QGIS doesn't do it automatically for you - so when the
path of your python installation changes, you must always change it
too. There are two ways of doing that:
- permanent: modify PythonPath in registry: HKEY_LOCAL_MACHINE \
SOFTWARE \ Python \ PythonCore \ 2.5 \ PythonPath
- temporary: set PYTHONPATH environment variable
One example - I have qgis installed in c:\martin\dev\inst
- I've copied to that directory python25.dll and the whole
installation of python: Python25 directory
- I've created a small .bat script in QGIS directory that sets
PYTHONPATH and runs QGIS:
set PYTHONPATH=%CD%\Python25\Lib;%CD%\Python25\DLLs
qgis
Hope that helps.
Regarding some official QGIS package shipping Python with itself - I
don't know, it's more a question for Tisham...
Martin
On Wed, Feb 27, 2008 at 3:39 PM, Michaël Douchin
<
[hidden email]> wrote:
> Hi all,
> Before the python bindings, Qgis was completely portable (under windows)
> : I could copy the installation folder on a usb disk, and use it from here.
> Now, because Qgis uses the pre installed python on each computer, it is
> not possible anymore : we loose the python plugins when moving the
> installation folder.
>
> What do you think of building a complete portable application (as for
> the grass tools), including the last python version (now python25)) ?
> Is it possible ?
> What do you think ?
>
> Waiting for your comments
> Michaël DOUCHIN
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer