Re: [Distutils] providing a way for pip to communicate extra info to users

2018-04-11 Thread Paul Moore
On 11 April 2018 at 20:16, Dwight Hubbard wrote: > It would be useful as well for sites that run their own mirror > infrastructure to be able to add motd text to the pip commands as well. > > However I don't think this should be implemented via the response code from > a call

Re: [Distutils] providing a way for pip to communicate extra info to users

2018-04-11 Thread Nathaniel Smith
On Mon, Apr 9, 2018, 16:47 Chris Jerdonek wrote: > > One of Donald's comments in response to the idea (and that occurred to > me too and that I agree with) is that providing a way to communicate > messages to users introduces another possible avenue for attack. I

Re: [Distutils] Execute command before pip install

2018-04-11 Thread Brett Cannon
On Wed, 11 Apr 2018 at 10:36 John Thorvald Wodder II wrote: > > On 2018 Apr 11, at 06:55, Jorge Maldonado Ventura < > jorgesu...@freakspot.net> wrote: > > > > I need to execute a command automatically when running `pip install` to > solve

Re: [Distutils] Execute command before pip install

2018-04-11 Thread John Thorvald Wodder II
> On 2018 Apr 11, at 06:55, Jorge Maldonado Ventura > wrote: > > I need to execute a command automatically when running `pip install` to solve > https://notabug.org/jorgesumle/boot-em-all/issues/1 > > I need to do that to compile the translation files. I found that

Re: [Distutils] providing a way for pip to communicate extra info to users

2018-04-11 Thread Paul Moore
On 11 April 2018 at 17:32, Pradyun Gedam wrote: > On Tue, 10 Apr 2018, 05:17 Chris Jerdonek, wrote: [...] >> A possible middle-ground could be to hard-code a message in pip. Pip >> could display the message in certain circumstances, e.g. in response

Re: [Distutils] providing a way for pip to communicate extra info to users

2018-04-11 Thread Pradyun Gedam
On Tue, 10 Apr 2018, 05:17 Chris Jerdonek, wrote: > On the pypa-dev Google group, a suggestion was raised about giving pip > a way to communicate extra info to users. > > This was during a thread started by Matthew Brett about pip breaking > for certain macOS users due

[Distutils] setuptools package rpm issue

2018-04-11 Thread xiaojun....@nnct-nsn.com
hi, When i use the latest python version 3.6.5 to package the setuptools version 39.0.1 to rpm,the os is readhat 6.5.i have some problem. I use blow command to package it: python3 setup.py bdist_rpm --requires "Python3-nsn" --no-autoreq --packager "xiaojun@nnct-nsn.com"

[Distutils] Execute command before pip install

2018-04-11 Thread Jorge Maldonado Ventura
I need to execute a command automatically when running `pip install` to solve https://notabug.org/jorgesumle/boot-em-all/issues/1 I need to do that to compile the translation files. I found that overriding the `setuptools.command.install` makes it work with `python3 setup.py install`, but I

Re: [Distutils] How to install examples files?

2018-04-11 Thread Thomas Kluyver
If I recall correctly, 'pip install --target' works by installing into a temporary directory, then copying only the library part to the target directory. So it will throw away any docs/examples/scripts that would be installed outside the importable package. On Tue, Apr 10, 2018, at 10:08 PM,