1
0
python-jupyter-core/use_rpms_paths.patch
Markéta Machová 182c7b16ce Accepting request 868748 from home:bnavigator:branches:devel:languages:python:jupyter
- Update to 4.7.1
  * Allow creating user to delete secure file
- Changelog for 4.7.0
  * Add a new JUPYTER_PREFER_ENV_PATH variable, which can be set 
    to switch the order of the environment-level path and the 
    user-level path in the Jupyter path hierarchy (e.g., jupyter 
    --paths). It is considered set if it is a value that is not 
    one of 'no', 'n', 'off', 'false', '0', or '0.0' (case 
    insensitive). If you are running Jupyter in multiple virtual 
    environments as the same user, you will likely want to set 
    this environment variable.
  * Drop Python 2.x and 3.5 support, as they have reached end of 
    life.
  * jupyter --paths --debug now explains the environment 
    variables that affect the current path list.
  * Add conda environment information in jupyter troubleshoot.
  * Update _version.version_info and _version.__version__ to 
    follow Python conventions.
- merge jupyter package as capability into the primary python
  package
- fix replacement of paths:
  * fix noop introduced by overeager specfile-cleaner for system
    paths, adjust use_rpm_paths.patch
  * don't replace ENV_CONFIG_PATH or ENV_JUPYTER_PATH because that 
    would break virtual environments. See also
     gh#jupyter/jupyter_core#208

OBS-URL: https://build.opensuse.org/request/show/868748
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-core?expand=0&rev=12
2021-02-03 12:33:57 +00:00

36 lines
953 B
Diff

From: toddrme2178@gmail.com
Date: 2017-09-20
Subject: Use rpm paths
Use single-line paths. These must be replaced with the appropriate
system paths in the .spec file.
---
--- a/jupyter_core/paths.py
+++ b/jupyter_core/paths.py
@@ -117,10 +117,7 @@
else: # PROGRAMDATA is not defined by default on XP.
SYSTEM_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')]
else:
- SYSTEM_JUPYTER_PATH = [
- "/usr/local/share/jupyter",
- "/usr/share/jupyter",
- ]
+ SYSTEM_JUPYTER_PATH = ["_datadir_jupyter_"]
ENV_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')]
@@ -169,10 +166,7 @@
else: # PROGRAMDATA is not defined by default on XP.
SYSTEM_CONFIG_PATH = []
else:
- SYSTEM_CONFIG_PATH = [
- "/usr/local/etc/jupyter",
- "/etc/jupyter",
- ]
+ SYSTEM_CONFIG_PATH = ["_sysconfdir_jupyter_"]
ENV_CONFIG_PATH = [os.path.join(sys.prefix, 'etc', 'jupyter')]