Source: python-can
Version: 4.6.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: environment
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
python-can could not be built reproducibly.

This is because the documentation calls out to Python 2.x and the
error message that gets embedded in the documentation varies depending
on the shell (eg. dash vs. bash):

│ │ │ │ -/bin/sh: 1: python: not found
│ │ │ │ +/bin/sh: line 1: python: command not found

This is, in turn, caused by the debian/patches/python3.patch patch
being slightly incomplete, we also need to patch the can.bridge bit:

  --- a/doc/scripts.rst 2025-10-06 09:41:22.757481287 -0700
  --- b/doc/scripts.rst 2025-10-06 09:49:15.270426016 -0700
  @@ -62,7 +62,7 @@
 
   A small application that can be used to connect two can buses:
 
  -.. command-output:: python -m can.bridge -h
  +.. command-output:: python3 -m can.bridge -h
       :shell:


 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/doc/scripts.rst   2025-10-06 09:41:22.757481287 -0700
--- b/doc/scripts.rst   2025-10-06 09:49:15.270426016 -0700
@@ -62,7 +62,7 @@
 
 A small application that can be used to connect two can buses:
 
-.. command-output:: python -m can.bridge -h
+.. command-output:: python3 -m can.bridge -h
     :shell:
 
 

Reply via email to