#9 Unset %%py3_shebang_flags to let Jupyter see pip installed extensions
Merged 8 months ago by nonamedotc. Opened 9 months ago by ksurma.
rpms/ ksurma/python-nbconvert unset-shebang  into  rawhide

file modified
+9 -1
@@ -1,8 +1,12 @@ 

+ # Unset -s on python shebang - ensure that extensions installed with pip

+ # to user locations are seen and properly loaded

+ %global py3_shebang_flags %nil

+ 

  %global pypi_name nbconvert

  

  Name:           python-%{pypi_name}

  Version:        6.1.0

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        Converting Jupyter Notebooks

  

  License:        BSD and MIT
@@ -133,6 +137,10 @@ 

  %endif

  

  %changelog

+ * Mon Nov 29 2021 Karolina Surma <ksurma@redhat.com> - 6.1.0-3

+ - Remove -s from Python shebang in `jupyter-nbconvert` to let Jupyter see 

+   pip installed extensions

+ 

  * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.0-2

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

  

There was recently a config change in jupyter_core which enables loading extensions from user locations (namely ~/.local/etc/jupyter), see: https://github.com/jupyter/jupyter_core/issues/221. Our Python packages include Python shebang flag -s by default which prevents loading modules from user site directories. This PR changes this default by unsetting %py3_shebang_flags.
This change is applied to all packages that bring /usr/bin/jupyter-* to Fedora.

rebased onto 6523a2c

9 months ago

Pull-Request has been merged by nonamedotc

8 months ago
Metadata