Conversation
| data_files = [] | ||
|
|
||
| # install package manifest | ||
| data_files.append(('share/' + package_name, ['package.xml'])) |
There was a problem hiding this comment.
Since this library and function are to be used for explicitly ament_python rather than pure python packages there should indeed always be a package.xml.
There was a problem hiding this comment.
Currently there is no "pure python" build type. We probably need to revisit the details when that is being introduced.
|
ament_tools obviously doesn't biff or the CI wouldn't have passed, but does it behave any differently for python packages with this change or just regenerate the files anyway? |
I am not sure I understand the question. Maybe you can rephrase / clarify it. |
|
I will merge the patch for now as is. Any additional comments can be addressed afterwards. |
The CI run demonstrates that adding this change did not adversely affect source builds. If both ament_tools and setup.py try to place the data files nothing errors out. From looking at the build log (sampled below) it seems like the setup.py created data files are not retained after build. I don't think this is an issue unless there's a disparity between the resources ament_tools creates and the ones in the source, but since they currently both use the same package.xml and the other file is empty and based on the package name I don't think that's anything to worry about. |
If the two versions of the same file would be different |
Cool. Hadn't seen that. |
The setup function does not allow filenames to be renamed during the install step. Also they should be part of the source tree since the the filename will be added to the manifest.
Hence each package using this function needs to place a file with the name of the package somewhere. By default into the
resourcesubfolder`.