SCons is a build system whose associated files are Python scripts.
Ref: https://www.scons.org/doc/0.96/HTML/scons-user/x325.html
* lisp/progmodes/python.el (python--auto-mode-alist-regexp):
Use 'python-mode' for SCons build files.
(cherry picked from commit
6e8fc4f6eabe21fc3e6df8c860a99e3e5f3748fd)
;;;###autoload
(defconst python--auto-mode-alist-regexp
- (rx "." (or "py"
- "pth" ; Python Path Configuration File
- "pyi" ; Python Stub File (PEP 484)
- "pyw") ; MS-Windows specific extension
+ (rx (or
+ (seq "." (or "py"
+ "pth" ; Python Path Configuration File
+ "pyi" ; Python Stub File (PEP 484)
+ "pyw")) ; MS-Windows specific extension
+ (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files
eos))
;;;###autoload