diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-04-11 22:12:45 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-04-13 11:31:19 +0300 |
commit | 27f413dbb7c90e34f39dd53ac65ef26e0935754d (patch) | |
tree | e796d7d898f6f2a2861352a49832aa7967d93edf /dev-python/spyder/files | |
parent | x11-terms/kitty-terminfo: split live ebuild (diff) | |
download | gentoo-27f413dbb7c90e34f39dd53ac65ef26e0935754d.tar.gz gentoo-27f413dbb7c90e34f39dd53ac65ef26e0935754d.tar.bz2 gentoo-27f413dbb7c90e34f39dd53ac65ef26e0935754d.zip |
dev-python/spyder: version bump 4.1.2
Package-Manager: Portage-2.3.98, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/spyder/files')
-rw-r--r-- | dev-python/spyder/files/spyder-4.1.2-build.patch | 35 | ||||
-rw-r--r-- | dev-python/spyder/files/spyder-4.1.2-py3-only.patch | 55 |
2 files changed, 90 insertions, 0 deletions
diff --git a/dev-python/spyder/files/spyder-4.1.2-build.patch b/dev-python/spyder/files/spyder-4.1.2-build.patch new file mode 100644 index 000000000000..7463550fc165 --- /dev/null +++ b/dev-python/spyder/files/spyder-4.1.2-build.patch @@ -0,0 +1,35 @@ +diff -r -U3 spyder-4.0.0b1.orig/setup.py spyder-4.0.0b1/setup.py +--- spyder-4.0.0b1.orig/setup.py 2018-08-12 04:35:49.000000000 +0700 ++++ spyder-4.0.0b1/setup.py 2018-08-14 20:25:32.827148778 +0700 +@@ -112,21 +107,6 @@ + + + #============================================================================== +-# Make Linux detect Spyder desktop file +-#============================================================================== +-class MyInstallData(install_data): +- def run(self): +- install_data.run(self) +- if sys.platform.startswith('linux'): +- try: +- subprocess.call(['update-desktop-database']) +- except: +- print("ERROR: unable to update desktop database", +- file=sys.stderr) +-CMDCLASS = {'install_data': MyInstallData} +- +- +-#============================================================================== + # Main scripts + #============================================================================== + # NOTE: the '[...]_win_post_install.py' script is installed even on non-Windows +@@ -210,8 +190,7 @@ + 'Intended Audience :: Science/Research', + 'Intended Audience :: Developers', + 'Topic :: Scientific/Engineering', +- 'Topic :: Software Development :: Widget Sets'], +- cmdclass=CMDCLASS) ++ 'Topic :: Software Development :: Widget Sets']) + + + #============================================================================== diff --git a/dev-python/spyder/files/spyder-4.1.2-py3-only.patch b/dev-python/spyder/files/spyder-4.1.2-py3-only.patch new file mode 100644 index 000000000000..afdc92a1e122 --- /dev/null +++ b/dev-python/spyder/files/spyder-4.1.2-py3-only.patch @@ -0,0 +1,55 @@ +diff --git a/setup.py b/setup.py +index 2d5d58b..4adc952 100644 +--- a/setup.py ++++ b/setup.py +@@ -31,13 +31,6 @@ import shutil + from distutils.core import setup + from distutils.command.install_data import install_data + +- +-#============================================================================== +-# Check for Python 3 +-#============================================================================== +-PY3 = sys.version_info[0] == 3 +- +- + #============================================================================== + # Minimal Python version sanity check + # Taken from the notebook setup.py -- Modified BSD License +@@ -87,13 +80,8 @@ def get_subpackages(name): + def get_data_files(): + """Return data_files in a platform dependent manner""" + if sys.platform.startswith('linux'): +- if PY3: +- data_files = [('share/applications', ['scripts/spyder3.desktop']), +- ('share/icons', ['img_src/spyder3.png']), +- ('share/metainfo', ['scripts/spyder3.appdata.xml'])] +- else: +- data_files = [('share/applications', ['scripts/spyder.desktop']), +- ('share/icons', ['img_src/spyder.png'])] ++ data_files = [('share/applications', ['scripts/spyder.desktop']), ++ ('share/icons', ['img_src/spyder.png'])] + elif os.name == 'nt': + data_files = [('scripts', ['img_src/spyder.ico', + 'img_src/spyder_reset.ico'])] +@@ -131,9 +119,7 @@ CMDCLASS = {'install_data': MyInstallData} + # See spyder-ide/spyder#1158. + SCRIPTS = ['%s_win_post_install.py' % NAME] + +-if PY3 and sys.platform.startswith('linux'): +- SCRIPTS.append('spyder3') +-else: ++if sys.platform.startswith('linux'): + SCRIPTS.append('spyder') + + if os.name == 'nt': +@@ -269,8 +255,7 @@ if 'setuptools' in sys.modules: + + setup_args['entry_points'] = { + 'gui_scripts': [ +- '{} = spyder.app.start:main'.format( +- 'spyder3' if PY3 else 'spyder') ++ '{} = spyder.app.start:main'.format('spyder') + ] + } + |