Open
Description
setuptools version
setuptools==78.1.0
Python version
python 3.10
OS
Ubuntu 22.04 ARM64
Additional environment information
I am building rosmaster
It creates a package then calls setup(...)
for the install part.
Source: https://github.com/ros/ros_comm/tree/noetic-devel/tools/rosmaster
Description
The shebangs #!/usr/bin/env python
are being replaced by #!python
making the scripts non working.
This seems to be related to
setuptools/setuptools/_distutils/command/build_scripts.py
Lines 105 to 113 in 6ead555
Expected behavior
The shebangs are not modified
How to Reproduce
pip install rosinstall_generator
rosinstall_generator --rosdistro noetic --deps --tar \
rosmaster > rosmaster.rosinstall && \
mkdir -p src && \
vcs import src < rosmaster.rosinstall
ROS_VERSION=1 ./src/catkin/bin/catkin_make_isolated --install \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=/usr/bin/python3
Output
$ cat install_isolated/bin/rosmaster
#!python
[...]