Rez 2.0 and PySide

269 views
Skip to first unread message

Philip Hunter

unread,
Oct 28, 2014, 8:14:15 PM10/28/14
to rez-c...@googlegroups.com

Hello,

I'm attempting to install rez 2.0 into a /tmp location for testing, using:

python ./install.py -v /tmp/rez

In theory, I should be able to set the PATH to point to:

setenv PATH /tmp/rez/bin/rez:${PATH}

Which somewhat works.  The main problem is that my system doesn't have PySide as part of the OS, so I can't automatically run the GUI.  But If I attempt to run the installer using a non-system python, things break because (I assume) it doesn't save that original custom PYTHONPATH anywhere.  Or something like that.

I guess I'm wondering what steps to take to copy the "required python" files to just run rez....since it looks like the installer already attempts to do something like this by copying the python binary into the install location (/tmp/rez/bin/python).

Thanks,

- Philip

Allan Johns

unread,
Oct 30, 2014, 1:15:38 AM10/30/14
to rez-c...@googlegroups.com
Sorry do you mean that the Rez install fails if you're using a non-system python installation? What error do you get?

The installer uses virtualenv - Rez gets installed into its own virtualenv, no different to a standard venv. Neither PyQt nor Pyside is included in the installation, so rez-gui doesn't work out of the box - that's intended. To get it working you have two options (and apologies that this isn't documented yet):

1) Install PyQt/Pyside into rez's venv. I haven't tested this but it should work - just use /tmp/rez/bin/pip to install PyQt/Pyside. 'rez-gui' should work after that.

2) If you already have PyQt/Pyside available as a Rez package, or you can create one by hand from a current system install, then these are the steps you want to take:

- Ensure there's a PyQt/Pyside rez package available.

- run "rez-bind rezgui". There's a flag to switch between PyQt/Pyside. What this is doing is creating two rez packages - one for rez itself, and one for rez-gui (the rezgui package depends on the rez package). These packages aren't tied in any way to the python used for the actual rez installation.

- now you can run: rez-env rezgui -- rez-gui.

The second step is just a way to run rez-gui by utilising an existing PyQt/Pyside rez package - existing rez users probably already have such a package.

A final note - rez-gui hasn't actually been tested with Pyside, only PyQt. It should work with both though, if you hit any trouble I don't think it will be difficult to fix.

Cheers
A





--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages