Have you looked into using sitecustomize.py?
I used it at my previous studio to distribute all tools, inside
applications like maya and standalone with pyQt included.
you need to add the path to the sitecustomize.py location on the server to
a pythonpath env variable on every machine.
Then every time an app starts up a python interpreter it will execute this
sitecustomize.py file.

I have used it to set plugin/shelf/module paths, add env variable for the
running instance of the interpreter to allow the tool to use Qt, pyQt from
the server, copy necessary files to local installs of apps like Nuke that
required certain things to be local to work.

Then with standalone tools you can execute them with a bat file that points
to the server location of python and the py file for your app or an have
executables.

You can even have different sitecustomize.py files for different
disciplines within the pipeline so that they get different setups when they
start up a program all by pointing the pythonpath env variable on a machine
to which sitecustomize.py you want them to use. Then when a new employee
comes along you just have to set the pythonpath env variable on their
machine and they can start using tools form the network.
-Cheers,
Damon Shelton
mo-cap pipeline td - naughty dog

On Thu, Sep 27, 2012 at 12:55 AM, Gabor L. Toth <[email protected]> wrote:

> Hi,
>
> I also develop standalone applications with pyqt for our studio, and
> I'm also making standalone exe (using cx_freeze or py2exe module).
> These applications are usually small (like maya starter gui etc.) so
> users can launch it from the network, they don't even have to copy
> that to the local machines. I think it is the easiest method, much
> easier than distributing python and the modules. Why do you want to
> avoid building an .exe?
> Otherwise, using python from network location is another option.
>
> Hope this helps,
> Gabor
>
>
> On Wed, Sep 26, 2012 at 4:24 PM, Justin Israel <[email protected]>
> wrote:
> > I am not certain how windows behaves in this situation, but I know on
> osx or
> > linux you can have python installed on the network and run scripts from
> that
> > interpreter, which would pick up PyQt in its site-packages.
> > You would have to see if windows doesn't complain about running python
> from
> > a network location. Otherwise, pyinstaller might be your best option if
> you
> > dont want python installed locally. It will create a standalone exe
> (which
> > you said you didnt want).
> > If you at least have python installed on the clients, Im sure a network
> > location for PyQt would work fine.
> >
> >
> > On Sep 26, 2012, at 1:06 AM, PBLN RAO <[email protected]> wrote:
> >
> > Hi all,
> >
> > we have developed an application which is a portable version and in a
> stage
> > to deploy.
> >
> > we are planning to keep the copy (all .pyc) in server and give shortcuts
> to
> > end user to use it from server.
> >
> > the client systems will not have python and pyqt installed locally.
> >
> > so how can we deploy this app in server so that all of them can access
> > without installation process or making it a .exe.
> >
> > --
> > view archives: http://groups.google.com/group/python_inside_maya
> > change your subscription settings:
> > http://groups.google.com/group/python_inside_maya/subscribe
> >
> > --
> > view archives: http://groups.google.com/group/python_inside_maya
> > change your subscription settings:
> > http://groups.google.com/group/python_inside_maya/subscribe
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to