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

catkin_install_python does not insert shebang line #1187

Open
scotgopal opened this issue May 27, 2023 · 1 comment
Open

catkin_install_python does not insert shebang line #1187

scotgopal opened this issue May 27, 2023 · 1 comment

Comments

@scotgopal
Copy link

According to the documentation in http://docs.ros.org/en/jade/api/catkin/html/howto/format2/installing_python.html, catkin_install_python should add shebang line.

However, I don't see the shebang lines being added after doing catkin config --install && catkin build. The following ws contains a MWE project that i used for testing.

Folder structure:

❯ tree test_catkin_ws/
test_catkin_ws/
└── src
    └── test_project
        ├── CMakeLists.txt
        ├── package.xml
        └── test.py

2 directories, 3 files

test_catkin_ws.zip

@Rayman
Copy link

Rayman commented May 28, 2023

What catkin_install_python does is modify the shebang line to use the specific Python version used at configure time. So for example you have a shebang with Python 2, and you have Python 3 configured, it'll update the shebang in install space to Python 3.

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

No branches or pull requests

2 participants