--
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.
C:\>echo %PYTHONPATH%%PYTHONPATH%C:\>echo %PATH%C:\windows\system32;C:\windows;C:\Python27;C:\Python27\Scripts;C:\>rez-bind
'rez-bind' is not recognized as an internal or external command,
operable program or batch file.
C:\>python C:\Python27\Scripts\rez-bind cmake --exe "C:\CMake\bin\cmake.exe"
rez: PackageRepositoryError: Lockfile directory C:\~\packages does not exist - please create and try againC:\>python C:\Python27\Scripts\rez-bind cmake --exe "C:\CMake\bin\cmake.exe"
...
WindowsError: [Error 1314] A required privilege is not held by the client.C:\windows\system32>python C:\Python27\Scripts\rez-bind cmake --exe "C:\CMake\bin\cmake.exe"
created package 'cmake-3.2.0' in C:\Users\holofermes/packages
C:\>python C:\Python27\Scripts\rez-search cmake
cmake-3.2.0
C:\>python C:\Python27\Scripts\rez-env cmake
C:\>python C:\Python27\Scripts\rez-env cmake -- cmake --version
cmake version 3.2.0-rc2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
i = path.find(os.path.sep, 1)
if i < 0: i = len(path)if i != 1: i = path.find(posixpath.sep, 1) if i < 0: i = len(path) if i != 1: return pathOn Monday, May 25, 2015 at 11:37:24 PM UTC+1, Mark Streatfield wrote:
Hi Fabio.
When I looked at getting rez to work on Windows I found problems with the behaviour of os.path.expanduser as it is implemented on Windows and how that worked with the configuration system in rez (where weak package references are also denoted with a ~). This code should be doing the expansion https://github.com/nerdvegas/rez/blob/resources2/src/rez/config.py#L624 using a function defined here https://github.com/nerdvegas/rez/blob/resources2/src/rez/utils/formatting.py#L429. I think it would be preferable to investigate why that sisn't working as expected rather than adding the os.path.expanduser calls.
I am unable to replicate the problem with rez-env. A call to rez env puts me in a sub shell that remains interactive with the environment correctly set (including prompt) for the rez session. Are you calling rez from a cmd shell? I didn't test any integration with cygwin or git bash on windows.
Mark.
On 26 May 2015 at 06:06, Fabio Piparo <holof...@gmail.com> wrote:
I've found a few issues with using rez on windows:cmd.exe doesn't interpret the tilde character ('~') to be the value of the user home directory. I initially chased this around by patching everywhere with expanduser, but eventually I realized that I just needed to take care of the default paths defined in rezconfig.py and everything worked.Second, rez-env doesn't seem to be interactive. I'm used to how "rez-env somepackage" puts you in a interactive shell, but on windows it doesn't seem to be interactive as it exits out right away.To get the same behavior I created an empty .bat file (somefile.bat), and as long as is in the %PATH% of the package I could do "rez-env somepackage -- somefile" to stay in the shell.
--
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.
Do you think it's reasonable to check for unix paths at this point as well?
When I install rez on windows, the executables in the Scripts/rez folder are all .exe files. .exe is then set as part of the list in the PATHEXT variable. I also then make sure that Scripts/rez (and not the Scripts folder) is in PATH. I believe this combination is what allows us to run the executables without .bat files.
When I first run into this issue back I installed rez in with "python setup.py install" and it didn't create .exe files, only when rez is installed with "python ./install.py -v DEST_DIR" they are executed. Despite that both way works just fine, no need for bats!
--
You received this message because you are subscribed to a topic in the Google Groups "rez-config" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rez-config/HdlAQWQ9bEA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rez-config+...@googlegroups.com.