Skip to content

Commit

Permalink
Remove catkin_python_setup
Browse files Browse the repository at this point in the history
Gets around:

> error: Multiple top-level packages discovered in a flat-layout: ['srv', 'msg', 'sample', 'action'].
       >
       > To avoid accidental inclusion of unwanted files or directories,
       > setuptools will not proceed with this build.
       >
       > If you are trying to create a single distribution with multiple packages
       > on purpose, you should not rely on automatic discovery.
       > Instead, consider the following options:
       >
       > 1. set up custom discovery (`find` directive with `include` or `exclude`)
       > 2. use a `src-layout`
       > 3. explicitly set `py_modules` or `packages` with a list of names
       >
       > To find more information, look for "package discovery" on setuptools docs.
       > CMake Error at catkin_generated/safe_execute_install.cmake:4 (message):
       >
       >   execute_process(/build/jsk_recognition-release-release-noetic-jsk_recognition_msgs-1.2.17-2/build/catkin_generated/python_distutils_install.sh)
       >   returned error code
       > Call Stack (most recent call first):
       >   cmake_install.cmake:46 (include)
       >
       >
       > make: *** [Makefile:100: install] Error 1
  • Loading branch information
kjeremy authored and lopsided98 committed Jul 26, 2024
1 parent 0c2d6cf commit a55d6a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion distros/distro-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ let
image-cb-detector = patchBoostSignals rosSuper.image-cb-detector;

jsk-recognition-msgs = rosSuper.jsk-recognition-msgs.overrideAttrs ({
buildInputs ? [], ...
buildInputs ? [], postPatch ? "", ...
}: {
buildInputs = buildInputs ++ [ rosSuper.ros-environment ];
postPatch = ''
substituteInPlace CMakeLists.txt --replace "catkin_python_setup()" ""
'';
});

laser-cb-detector = patchBoostSignals rosSuper.laser-cb-detector;
Expand Down

0 comments on commit a55d6a9

Please sign in to comment.