-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rez-pip - no case for ../../include/... file #861
Comments
I found another issue with:
It looks like the ../../include files in greenlet comes from the headers kwarg to setup() in setup.py and should probably be handled. They only seem to be used at build time and are not installed by pip. For now I just install them to {root}/include/ the LICENSE in Qt.py comes from the data_files kwarg without a mapping. For now i put those files in {root}/ I do get why you raise as it's impossible to know the purpose of these files. |
Hey, I written the patch for the original PR for the I do agree, it seems like the problem is a bit bigger than just rez pip --install ranger-fm
# RuntimeError: ("Don't know what to do with source file %r, please file a ticket", u'../../share/applications/ranger.desktop') I don't think this idea is going to be good but, what do you think of:
Maybe for step 1, there could be a new setting, e.g. But for now, I think it will be nice and easy to at least fix the error message, which is not formatted correctly. |
Agreed, this shouldn't be an error, and these files should go to some
configured subfolder, and emit a warning message.
Will get on this soon. Been on hols last 2 weeks hence the radio silence.
Cheers,
A
…On Mon, Mar 16, 2020 at 5:48 AM Joe Yu ***@***.***> wrote:
Hey, I written the patch for the original PR for the ../../include/python:
- #855 <#855>, to solve
- #821 <#821>
I do agree, it seems like the problem is a bit bigger than just
../../include/python, I ran into this today pip installing ranger
<https://github.com/ranger/ranger>:
rez pip --install ranger-fm# RuntimeError: ("Don't know what to do with source file %r, please file a ticket", u'../../share/applications/ranger.desktop')
I don't think this idea is going to be good but, what do you think of:
1. if ../../*** is detected, and rez does not know how to handle it,
2. Throw a warning
3. Substitute the leading ../../ with {root}/, install and carry on.
Maybe for step 1, there could be a new setting, e.g. pip_remaps
dictionary, for re-mapping unknown file paths in the rez config.py
<https://github.com/nerdvegas/rez/wiki/Configuring-Rez> so at least users
perform their own substitutions/fixes.
But for now, I think it will be nice and easy to at least fix the error
message, which is not formatted correctly.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#861 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOUST3RMRYUTK2LWHSO6LRHUPIVANCNFSM4LBJWSDQ>
.
|
I found an issue with rez-pip trying to install greenlet.
This is due to a similar case as here:
https://github.com/nerdvegas/rez/blob/49cae49a9dd4376b9efb6d571713b716d315b32b/src/rez/pip.py#L426-L432
We need to check for packages reporting files as ../../include/... as well.
To replicate:
rez-pip -i greenlet
The text was updated successfully, but these errors were encountered: