Skip to content
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

Remove newlines in package description for compatibility with new setuptools #315

Closed

Conversation

Tobias-Fischer
Copy link

…uptools

Currently many builds are broken with the newest setuptools
This is because of pypa/setuptools#2870
See e.g. pypa/setuptools#1390 pypa/setuptools#2895 pypa/setuptools#2893

…uptools

Currently many builds are broken with the newest setuptools
This is because of pypa/setuptools#2870
See e.g. pypa/setuptools#1390 pypa/setuptools#2895 pypa/setuptools#2893
@Tobias-Fischer Tobias-Fischer changed the title Remove newlines in package description for compatibility with new set… Remove newlines in package description for compatibility with new setuptools Nov 18, 2021
Tobias-Fischer added a commit to Tobias-Fischer/catkin_pkg-feedstock that referenced this pull request Nov 18, 2021
@cottsay
Copy link
Member

cottsay commented Nov 18, 2021

Currently many builds are broken with the newest setuptools

Could you share an example?

@Tobias-Fischer
Copy link
Author

Sure. Here is one for image-geometry (https://github.com/ros-perception/vision_opencv/blob/noetic/image_geometry/package.xml - mind the newlines in the description), same for e.g. cv-bridge.

Traceback (most recent call last):
6665
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/work/ros-noetic-image-geometry/src/work/setup.py", line 10, in <module>
6666
    setup(**d)
6667
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
6668
    return distutils.core.setup(**attrs)
6669
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8/distutils/core.py", line 148, in setup
6670
    dist.run_commands()
6671
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8/distutils/dist.py", line 966, in run_commands
6672
    self.run_command(cmd)
6673
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8/distutils/dist.py", line 985, in run_command
6674
    cmd_obj.run()
6675
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 292, in run
6676
    writer(self, ep.name, os.path.join(self.egg_info, ep.name))
6677
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 656, in write_pkg_info
6678
    metadata.write_pkg_info(cmd.egg_info)
6679
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8/distutils/dist.py", line 1117, in write_pkg_info
6680
    self.write_pkg_file(pkg_info)
6681
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8/site-packages/setuptools/dist.py", line 167, in write_pkg_file
6682
    write_field('Summary', single_line(self.get_description()))
6683
  File "/usr/share/miniconda/conda-bld/ros-noetic-image-geometry_1637272499147/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8/site-packages/setuptools/dist.py", line 151, in single_line
6684
    raise ValueError('Newlines are not allowed')
6685
ValueError: Newlines are not allowed
6686
CMake Error at catkin_generated/safe_execute_install.cmake:4 (message):

This will obviously take a while before it shows up in Debian builds because setuptools is far behind, but we encounter the issue in RoboStack already as we have up-to-date setuptools in conda-forge.

/cc @wolfv

@Tobias-Fischer
Copy link
Author

#316 looks nicer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants