[Distutils] How to exclude a directory from a module that has tests?

2015-11-13 Thread Nagy László Zsolt
Hello, My source distribution contains a single module. It is **not** a package. I have used this: setup(name='yubistorm', version=__version__, description='Asnychronous two factor authentication client for YubiCloud with Tornado', long_description="""Provides a simple

Re: [Distutils] Installing packages using pip

2015-11-13 Thread Alexander Walters
import pip pip.install(PACKAGESPEC) something like that? On 11/13/2015 12:42, Chris Barker wrote: On Fri, Nov 6, 2015 at 8:06 AM, Paul Moore > wrote: That's the correct command, but you need to run it from the Windows command prompt,

Re: [Distutils] The future of invoking pip

2015-11-13 Thread Chris Barker
On Thu, Nov 12, 2015 at 11:16 PM, Nathaniel Smith wrote: > > > If we waved our hands and were able to magically make Python package > >> management perfect, what would that look like? > > > > well, I think the command would be: > > > > python install package_name > > > > I know

Re: [Distutils] Installing packages using pip

2015-11-13 Thread Chris Barker
On Fri, Nov 6, 2015 at 8:06 AM, Paul Moore wrote: > That's the correct command, but you need to run it from the Windows > command prompt, not from within IDLE. > Now that we are talking about how to invoke the installer on other threads... This is NOT the least bit a rare

Re: [Distutils] Installing packages using pip

2015-11-13 Thread Nathaniel Smith
On Nov 13, 2015 12:00 PM, "Alexander Walters" wrote: > > import pip > pip.install(PACKAGESPEC) > > something like that? This would be extremely handy if it could be made to work reliably... But I'm skeptical about whether it can be made to work reliably. Consider all the

Re: [Distutils] Installing packages using pip

2015-11-13 Thread R. David Murray
On Fri, 13 Nov 2015 12:09:28 -0800, Nathaniel Smith wrote: > On Nov 13, 2015 12:00 PM, "Alexander Walters" > wrote: > > > > import pip > > pip.install(PACKAGESPEC) > > > > something like that? > > This would be extremely handy if it could be made to work

Re: [Distutils] Installing packages using pip

2015-11-13 Thread Chris Barker
On Fri, Nov 13, 2015 at 12:09 PM, Nathaniel Smith wrote: > On Nov 13, 2015 12:00 PM, "Alexander Walters" > wrote: > > > > import pip > > pip.install(PACKAGESPEC) > > > > something like that? > > This would be extremely handy if it could be made to work

Re: [Distutils] Installing packages using pip

2015-11-13 Thread Alexander Walters
While I like the concept of calling pip via an api (and let me pat myself on the back for suggesting it in the first place in this thread), I honestly think that if it is something that is allowed, it should be implemented with a fair bit of guards. It would probably end up being a power-user

Re: [Distutils] "option --single-version-externally-managed not recognized" when pip install mysql-connector-python-rf

2015-11-13 Thread Chris Withers
On 13/11/2015 12:56, Ionel Cristian Mărieș wrote: On Fri, Nov 13, 2015 at 2:26 PM, Chris Withers > wrote: ​​ mysql-connector-python-rf hasn't changed in ages ​Looks like ​mysql-connector-python-rf 2.1.3 was released today,

Re: [Distutils] Current PyPI storage requirements?

2015-11-13 Thread Donald Stufft
> On Nov 13, 2015, at 2:07 AM, Nick Coghlan wrote: > > This isn't an urgent question, but rather a "if the stats are readily > available, I'm curious as to the answer" one: what are PyPi's current > storage requirements? The warehouse.python.org front page indicates > how

Re: [Distutils] How to exclude a directory from a module that has tests?

2015-11-13 Thread Ionel Cristian Mărieș
On Fri, Nov 13, 2015 at 1:50 PM, Nagy László Zsolt wrote: > The problem is that there is a "test" directory and it is added to the > source distribution. I want to exclude that. I know that there is an > "exclude" parameter for find_packages(). But this is not a package.

[Distutils] "option --single-version-externally-managed not recognized" when pip install mysql-connector-python-rf

2015-11-13 Thread Chris Withers
Hi All, My Travis nightly builds of a package started failing this morning with the following: https://travis-ci.org/Mortar/mortar_rdb/jobs/90919221 pip install mysql-connector-python-rf You are using pip version 6.0.7, however version 7.1.2 is available. You should consider upgrading via