diff options
| author | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
| commit | 8e8120eabdd28020aa69c7a60505cce2edd20adc (patch) | |
| tree | 061bf0acdc672720e0bc3a2d575f67d25aedb2d8 /dev-python/cython-python2/files | |
| parent | c16790af2c9b4cbc38e565d4311252193ff85484 (diff) | |
| download | baldeagleos-repo-21.1.2.tar.gz baldeagleos-repo-21.1.2.tar.xz baldeagleos-repo-21.1.2.zip | |
Updating liguros repo21.1.2
Diffstat (limited to 'dev-python/cython-python2/files')
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/cython-python2/files/50cython-gentoo.el b/dev-python/cython-python2/files/50cython-gentoo.el new file mode 100644 index 000000000000..e6dcc6a6d7fb --- /dev/null +++ b/dev-python/cython-python2/files/50cython-gentoo.el @@ -0,0 +1,11 @@ +;;; site-lisp configuration for cython-mode + +(add-to-list 'load-path "@SITELISP@") + +(autoload 'cython-mode "cython-mode" "Major mode for editing Cython files" t) +;;;###autoload +(add-to-list 'auto-mode-alist '("\\.pyx\\'" . cython-mode)) +;;;###autoload +(add-to-list 'auto-mode-alist '("\\.pxd\\'" . cython-mode)) +;;;###autoload +(add-to-list 'auto-mode-alist '("\\.pxi\\'" . cython-mode)) diff --git a/dev-python/cython-python2/files/cython-0.29.14-sphinx-update.patch b/dev-python/cython-python2/files/cython-0.29.14-sphinx-update.patch new file mode 100644 index 000000000000..3f426754f6f1 --- /dev/null +++ b/dev-python/cython-python2/files/cython-0.29.14-sphinx-update.patch @@ -0,0 +1,13 @@ +diff --git a/docs/conf.py b/docs/conf.py +index 10662e28c..a84e0b928 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -41,7 +41,7 @@ highlight_language = 'cython' + extensions = [ + 'ipython_console_highlighting', + 'cython_highlighting', +- 'sphinx.ext.pngmath', ++ 'sphinx.ext.imgmath', + 'sphinx.ext.todo', + 'sphinx.ext.intersphinx', + 'sphinx.ext.autodoc' diff --git a/dev-python/cython-python2/files/cython-0.29.21-spawn-multiprocessing.patch b/dev-python/cython-python2/files/cython-0.29.21-spawn-multiprocessing.patch new file mode 100644 index 000000000000..0aa7212b9a34 --- /dev/null +++ b/dev-python/cython-python2/files/cython-0.29.21-spawn-multiprocessing.patch @@ -0,0 +1,29 @@ +Needed to prevent a loop while calling cythonize on macOS - or any platform +defaulting to the 'spawn' method, as Python 3.8 does on Darwin. + +https://github.com/cython/cython/pull/3263 +From 15ae78bb74a856836dd64828326f4f0812d36520 Mon Sep 17 00:00:00 2001 +From: Marcel Bargull <marcel.bargull@udo.edu> +Date: Fri, 6 Dec 2019 18:21:19 +0100 +Subject: [PATCH] Disable parallel cythonization for "spawn" start method. + +--- + Cython/Build/Dependencies.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py +index 593e00a6ef..f9b9c15bc5 100644 +--- a/Cython/Build/Dependencies.py ++++ b/Cython/Build/Dependencies.py +@@ -1073,6 +1073,11 @@ def copy_to_build_dir(filepath, root=os.getcwd()): + + if N <= 1: + nthreads = 0 ++ if nthreads: ++ import multiprocessing ++ if multiprocessing.get_start_method() == 'spawn': ++ print('Disabling parallel cythonization for "spawn" process start method.') ++ nthreads = 0 + if nthreads: + import multiprocessing + pool = multiprocessing.Pool( |
