-
Notifications
You must be signed in to change notification settings - Fork 171
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
Add separate ROSDEP_ETC_DIR to help situations like #582. #583
base: master
Are you sure you want to change the base?
Conversation
I'll rebase this on top of #584 once @dirk-thomas releases the new patch release. |
3bf42e0
to
cd5189e
Compare
@dirk-thomas Ok, rebased. |
@dirk-thomas could we open discussion abuot this issue again? @awesomebytes is trying to install in a non-root prefix, and this came up again. |
Sorry, I am not maintaining this repo. I will leave it up to @wjwwood to comment. |
Realistically, this isn't high priority for me and I won't have time to get to it right now. Sorry @allenh1, perhaps in a few weeks I can swing around and do some |
Any updates on this? I ran into this issue when I've installed ros through conda-forge, and tried to inisialize rosdep, within the conda environment, which it failed since it was looking for /etc/ros in the root. My issue I've posted is here on github. |
@yev-d If you could test this and provide feedback on the PR that would be helpful. I think that the statement that rosdep doesn't work on conda without access to /etc/ros is valid. That's not the same as saying that ROS doesn't work with conda. I believe that this is moderately low priority as most people will just drop the rosdep sources file into that location and then move on. It's not optimal but it's a small onetime cost to work around. This is especially true because rosdep is designed to work with the system packages so having the sources systemwide is actually a designed feature. Your use case with Conda may have slightly different priorities, if so please consider contributing to help make those priorities happen. |
@tfoote You know, I'm convinced that ROS does work with conda, and that I'm just missing the workarounds like the one you've mentioned. |
It works fine for me on conda-forge as described in conda-forge/rosdep-feedstock#4, however it should say "ROS_ETC_DIR" instead of "ROSDEP_ETC_DIR" (see https://www.ros.org/reps/rep-0123.html) |
@wjwwood could you please give this patch a glance? Seems it's come up again. |
I just realised that @allenh1 deliberately created a new environment variable. In this case merging this PR does not add any risks at all, as it falls back to the current location if the new variable is not defined. Discussion point is then whether this needs to be documented somewhere .. |
Is there any news on this PR? |
@Tobias-Fischer to help this PR along would you be interested in adding a test which exercises the new behavior? |
Hi @nuclearsandwich - I am not familiar with rosdep and writing a test would unfortunately consume too much of my time. However, I am not sure a test is really needed - all the PR does is turning a constant into a configurable variable via an environment variable. Rather than a test, I think some documentation would be more beneficial; but as I said, I am not familiar enough with rosdep to have a strong opinion. |
I'd like a test which simulates a
Documentation would also be a fantastic addition and your contributions there would be welcome. https://github.com/ros-infrastructure/rosdep/blob/master/doc/overview.rst#setting-up-rosdep is a good place to start if you would like to update the docs. If you target this pull request branch we could keep everything in one branch before merging. |
I think this PR is obsolete - isn't all of the required functionality already available by setting
The only difference I see is that |
Adds a separate variable to control where rosdep keeps its sources, as
ROS_ETC_DIR
is used for other purposes.connects to #582
This change is