[Python-ideas] Making -m work for scripts

Ram Rachum ram at rachum.com
Thu Jun 11 19:39:50 CEST 2015


I know little about package management, but I assume that the information
on where scripts are installed exists somewhere? Some central place that
Python might be able to access?

On Thu, Jun 11, 2015 at 8:37 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:

> On Thu, 11 Jun 2015 20:23:57 +0300
> Ram Rachum <ram at rachum.com> wrote:
> > Hi,
> >
> > What do you think about making `python -m whatever` work also for
> installed
> > scripts and not just for modules? I need this now because I've installed
> > pypy on Linux, and I'm not sure how to run the `nosetests` of PyPy (in
> > contrast to the `nosetests` of the system Python.) It's sometimes a mess
> to
> > find where Linux installed the scripts related with each version of
> Python.
> > But if I could do `pypy -m nosetests` then I'd have a magic solution.
> What
> > do you think?
>
> How would Python know where to find the script?
> Note: if "python -m nose" doesn't already work, it is probably a nice
> feature request for nose.
>
> Regards
>
> Antoine.
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150611/1f30d887/attachment-0001.html>


More information about the Python-ideas mailing list