Rez Windows symlink/python questions

520 views
Skip to first unread message

Mark Neumann

unread,
Aug 16, 2019, 5:16:28 PM8/16/19
to rez-config
Hi all,

I am in the process of looking at Rez for use in our facility. After reading the docs and installing rez I have questions that I am hoping to get some help with. 

Questions/Issues:
1. when running rez bind python. is there any option to not have the python package create a symbolic link to the python executable? 
- I want to be able to run python from a network path and under windows(at least in our environment) our facility will not be able to utilize symbolic links like the one created in 
~\packages\python\2.7.16\platform-windows\arch-AMD64\os-windows-10.0.17134\bin\

1.1 if there is no option am I correct in assuming I will have to create my own package for python? 

2. Which version of python should rez be installed from? 2.7.16? 

2.1 Is rez fully compatible with python 3.7?

I’m using rez 2.40.3 and followed the directions at https://github.com/nerdvegas/rez/wiki/Installation to install rez

Also, a little information on our environment for context. 
we are running on windows 
we run our software from a centralized network location (this includes python) 
we cannot use symbolic links.

Thanks, 
Mark

Allan Johns

unread,
Aug 16, 2019, 7:51:32 PM8/16/19
to rez-c...@googlegroups.com
Hi Mark,

1: No there is not that option. It sounds as though you should create your own rez python package. It's quite easy to simply put one together manually, under ~/packages for testing purposes, for example.
2: No specific version of python is necessary, although I would go with 2.7.*. Rez isn't compatible with py 3 yet, but that's actively being worked on and should be available soon, we're currently ironing out some bugs.

Cheers
Allan



--
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 view this discussion on the web visit https://groups.google.com/d/msgid/rez-config/63a77106-d7be-4387-a46c-94867192a613%40googlegroups.com.

Thorsten Kaufmann

unread,
Aug 19, 2019, 7:04:03 AM8/19/19
to rez-config
As a quick additional heads up:

- Keep in mind, that on windows the default installation for Python sticks python27.dll into your Windows folder which  makes your package non-portable and dependent on a local install of the required python version
- You can work around this by calling the installer on the commandline and using the /a switch which will include the .dll in the python folder instead.

Cheers,
Thorsten

Mark Neumann

unread,
Aug 20, 2019, 11:23:48 AM8/20/19
to rez-config
Thank you both for the help. It's much appreciated.

Mark

Blazej Floch

unread,
Aug 30, 2019, 3:16:04 PM8/30/19
to rez-config
I haven't gotten around making a PR but the install script of rez should also allow to create the virtual environment without symlinks.


Should expose the symlink argument:

If this is an issue on your side you might just hardcode it to False - which is what I do.

Cheers,
Blazej

Daniel Wong

unread,
Mar 11, 2020, 7:54:26 AM3/11/20
to rez-config
Hi Blazej, 

I have the same problem too when running rez-bind python package in Win10. I tried to click the link you've posted and it is not valid now.

Would you mind explaining your idea again? Thank!

Cheers, 

Daniel

Blazej Floch於 2019年8月31日星期六 UTC+8上午3時16分04秒寫道:

Jasper van Nieuwenhuizen

unread,
Mar 12, 2020, 4:45:54 AM3/12/20
to rez-config
For Windows you could also use Rez-Scoopz (https://github.com/mottosso/rez-scoopz). (You can read more about Scoop itself here: https://scoop.sh/). You can then install Python with `rez env scoopz -- install python@3.7` or `rez env scoopz -- install python27`. You can also use the `--prefix` option to directly install to the network location or use `rez cp` afterwards. For me this worked like a charm. We have several versions of Python running from the server on Windows and Linux without problems. Using the latest version of Rez (2.54.0) installed with Python 3.8 (official installer, 64-bit!) on Windows.

Hope this helps others too.

jasper

Op woensdag 11 maart 2020 12:54:26 UTC+1 schreef Daniel Wong:

Daniel Wong

unread,
Mar 12, 2020, 7:31:42 AM3/12/20
to rez-config
Would try that later. Thanks for suggesting the repo, Jasper!

Cheers, 

Daniel

Jasper van Nieuwenhuizen於 2020年3月12日星期四 UTC+8下午4時45分54秒寫道:
Reply all
Reply to author
Forward
0 new messages