* Fix inclusion of jupyter file and check in CI by @blink1073 in #276 - Release 4.11.0 * Use hatch backend by @blink1073 in #265 * is_hidden: Use normalized paths by @martinRenou in #271 - Release 4.10.0 * Include all files from jupyter_core by @jonringer in #253 - Refresh use_rpms_paths.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-core?expand=0&rev=24
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
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.
|
|
|
|
---
|
|
|
|
Index: jupyter_core-4.11.1/jupyter_core/paths.py
|
|
===================================================================
|
|
--- jupyter_core-4.11.1.orig/jupyter_core/paths.py
|
|
+++ jupyter_core-4.11.1/jupyter_core/paths.py
|
|
@@ -130,10 +130,7 @@ if os.name == "nt":
|
|
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")]
|
|
|
|
@@ -207,10 +204,7 @@ if os.name == "nt":
|
|
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")]
|
|
|