python-jupyter-core/use_rpms_paths.patch
Todd R c0a1a4b19b Accepting request 747806 from home:TheBlackCat:branches:devel:languages:python:jupyter
Update to 4.6.1
Rename python-jupyter_core to python-jupyter-core to match upstream rename and to comply with python package naming rules.

OBS-URL: https://build.opensuse.org/request/show/747806
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-core?expand=0&rev=1
2019-11-12 16:43:17 +00:00

36 lines
948 B
Diff

From: toddrme2178@gmail.com
Date: 2017-09-20
Subject: Use rpm paths
Use single-line paths. These should 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 = ["/usr/share/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 = ["/etc/jupyter"]
ENV_CONFIG_PATH = [os.path.join(sys.prefix, 'etc', 'jupyter')]