public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/jupyter_client/files/
@ 2017-08-31  2:20 Benda XU
  0 siblings, 0 replies; only message in thread
From: Benda XU @ 2017-08-31  2:20 UTC (permalink / raw
  To: gentoo-commits

commit:     9350101fe3e6c017f6cb301181263f7c48fdb048
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 31 02:19:43 2017 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Thu Aug 31 02:20:19 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9350101f

dev-python/jupyter_client: include the missing patch.

Credit:  Harris Landgarten
Bug: 629376

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../files/jupyter_client-5.1.0-setuptools.patch    | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/dev-python/jupyter_client/files/jupyter_client-5.1.0-setuptools.patch b/dev-python/jupyter_client/files/jupyter_client-5.1.0-setuptools.patch
new file mode 100644
index 00000000000..ff7dcb0f3d4
--- /dev/null
+++ b/dev-python/jupyter_client/files/jupyter_client-5.1.0-setuptools.patch
@@ -0,0 +1,39 @@
+From f9bd2643d42b3354b27e64368d8c15cad18101d2 Mon Sep 17 00:00:00 2001
+From: Philipp A <flying-sheep@web.de>
+Date: Tue, 8 Aug 2017 17:38:52 +0200
+Subject: [PATCH] Always use setuptools if availabe
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+When running `python* setup.py install`, the `jupyter-run` script doesn’t get installed without this.
+---
+ setup.py | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 60fa17c..0831f7a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -70,6 +70,7 @@
+     ],
+ )
+ 
++# require setuptools for these cases
+ if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv):
+     import setuptools
+ 
+@@ -85,7 +86,12 @@
+     'test': ['ipykernel', 'ipython', 'mock', 'pytest'],
+ }
+ 
+-if 'setuptools' in sys.modules:
++# always try to use setuptools if available
++try:
++    import setuptools
++except ImportError:
++    pass
++else:
+     setup_args.update(setuptools_args)
+     setup_args['entry_points'] = {
+         'console_scripts': [


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-31  2:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-31  2:20 [gentoo-commits] repo/gentoo:master commit in: dev-python/jupyter_client/files/ Benda XU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox