Re: [Maya-Python] Stalker

2014-05-12 Thread Erkan Özgür Yılmaz
Yes, exactly as you've said, all of the classes except mixins corresponds to a table and Shots.id -> Tasks.id -> Entities.id -> SimpleEntities.id all are foreign keys to the next. So querying a SimpleEntity will may return a mixed list of other entity types, this is the power of SQLAlchemy and Join

Re: [Maya-Python] Stalker

2014-05-12 Thread Justin Israel
(Sorry, I realized after I posted my side-topic that I might hijack the thread with it. I can move it to a new thread if need be) @Fredrik Ya what you are pointing at is the standard library, so it is all included. Go compiles to native binary, but the source is all cross platform. You can even cr

[Maya-Python] Distributing or hosting module?

2014-05-12 Thread Fredrik Averpil
Hi, I've been meaning to learn how to efficiently serve a python module to all workstations/render blades without actually installing it locally... So far I've just copied already compiled modules from the site-packages folder from a local installation and then I keep these in folders such as pyt

Re: [Maya-Python] Distributing or hosting module?

2014-05-12 Thread Erkan Özgür Yılmaz
Hi, I should repeat my reply also here, I try to put everything to the server. I place Stalker, Anima, SQLAlchemy (has a compiled query engine --I think-- but I don't care about the Windows workstations are not being able use it, it is already fast), Jinja2, comtypes and other python libraries t

Re: [Maya-Python] Distributing or hosting module?

2014-05-12 Thread Tony Barbieri
We use a similar technique as Erkan, but we don't rely on putting all of our paths in PYTHONPATH any longer. Instead, the only path in PYTHONPATH is the location of a sitecustomize.py file. sitecustomize.py is a magic file that python will import automatically at initialization time. One trick w

Re: [Maya-Python] Distributing or hosting module?

2014-05-12 Thread Chad Dombrova
We use pip to install and manage all 3rd party libraries. To do this, we create a distutils.cfg on the local workstation of each developer who will be using pip to control the directory layout: chad$ cat /usr/local/python-2.7.4/lib/python2.7/distutils/distutils.cfg [install] install-base=$PYTHON_

Re: [Maya-Python] Distributing or hosting module?

2014-05-12 Thread Tony Barbieri
Hey Chad, Rez looks really interesting. I remember looking at it awhile ago. Any chance 2.0 will support Windows? If not, have the OS specific components been isolated so I could look at getting it to run? The one silver lining is we are already running bash on Windows... On Mon, May 12, 201

Re: [Maya-Python] Distributing or hosting module?

2014-05-12 Thread Marcus Ottosson
Me and Thorsten Kaufman just started work on the Windows version of Rez, it'd be great to have you with us. https://github.com/nerdvegas/rez/issues/55 https://github.com/instinct-vfx/rez On 12 May 2014 18:29, Tony Barbieri wrote: > Hey Chad, > > Rez looks really interesting. I remember looking

Re: [Maya-Python] Distributing or hosting module?

2014-05-12 Thread Chad Dombrova
> > Rez looks really interesting. I remember looking at it awhile ago. Any > chance 2.0 will support Windows? > We've removed all the bash requirements and windows support is under way. Here is the master ticket: https://github.com/nerdvegas/rez/issues/55 Here is the fork where some folks are s

Re: [Maya-Python] Distributing or hosting module?

2014-05-12 Thread Justin Israel
We actually avoid eggs and just deploy everything to a network location right now. No local installs. Then we use the environment management system to sort out the paths for a given env. Gunna need to check out rez. I remember coming across the name before. The proposed updates sound cool about m

Re: [Maya-Python] Distributing or hosting module?

2014-05-12 Thread Marcus Ottosson
Justin, have a look here https://code.google.com/p/rez-config/downloads/list On 12 May 2014 20:55, Justin Israel wrote: > We actually avoid eggs and just deploy everything to a network location > right now. No local installs. Then we use the environment management system > to sort out the paths

Re: [Maya-Python] Distributing or hosting module?

2014-05-12 Thread Justin Israel
Thanks Marcus. Will check those out. On Tue, May 13, 2014 at 8:51 AM, Marcus Ottosson wrote: > Justin, have a look here > https://code.google.com/p/rez-config/downloads/list > > > On 12 May 2014 20:55, Justin Israel wrote: > >> We actually avoid eggs and just deploy everything to a network loc