-
Notifications
You must be signed in to change notification settings - Fork 280
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
Version 0.6.15 breaks Python packages which are not in a subfolder with the same name #756
Comments
I don't think the problem is in the difference between the Python package name The recent PR fixed a problem where the Python package name and the directory for it were extracted / interpreted incorrectly. Before the above error message did not trigger for your package because of that problem. I tried to use your package with the previous version of catkin and found one issue which is related to this one. When using For the So I think your package did not work in the devel space before but the intended error message was not printed due to the problem fixed in the PR. The question now is can we make the relaying script more flexible to cover your use case or do you have to move the code in the package into a subfolder with the Python package name (e.g. |
You are absolutely correct. Changing all of the relevant code to be in a Fortunately for us, we do have the ability to edit the upstream repository. So moving everything to a However, seeing that Python's built in packaging tools (distutils, setuptools, or whatever) allow using a different directory than the module name, it seems that it would be nice if the relaying script could also handle this situation. |
I looked into the relay script (https://github.com/ros/catkin/blob/indigo-devel/cmake/templates/__init__.py.in) and since it uses the I am sorry for the inconvenience but please go ahead and update your package. |
The following two tickets are for the regressions in Indigo and Jade due to this change: |
I just saw this issue recently. Looking at this version : It just says that your package Reference: https://docs.python.org/2/distutils/setupscript.html#listing-whole-packages |
We have a non-ROS Python package called trep, we also have a release repository called trep-release. In the release repository, we use the
patches
variable in tracks.yaml to include the non-ROS Python module as a third-party package. In an attempt to follow our understanding of associated naming conventions as closely as possible, the Python package is calledtrep
and the corresponding ROS package is calledpython-trep
.Since the merging of PR #751, our builds are now failing on the buildfarm during the
catkin_python_setup.cmake
target. The error isThe full log is available here.
So I guess my questions are:
trep
instead ofpython_trep
? Or is there some other way that we can fix this issue?The text was updated successfully, but these errors were encountered: