Re: [Distutils] how can projects with no files have downloads?

2014-09-14 Thread Donald Stufft

> On Sep 14, 2014, at 4:06 PM, Chris Jerdonek  wrote:
> 
> On Sun, Sep 14, 2014 at 1:03 PM, Donald Stufft  > wrote:
>> 
>> On Sep 14, 2014, at 1:58 PM, holger krekel  wrote:
>> 
>> Hi Donald, all,
>> 
>> I sometimes have doubts that the download numbers as shown by
>> pypi.python.org are correct.  Here is one case where i am pretty sure
>> something is wrong:
>> 
>> https://pypi.python.org/pypi/pytes
>> 
>> That's a project a friend uploaded after he heart me saying at my devpi
>> talk at EP2014 that i sometimes type "pip install pytes" :) It never had
>> files ASFAIK but has "18 downloads". How comes?
>> 
>> holger
>> ___
>> Distutils-SIG maillist  -  Distutils-SIG@python.org
>> https://mail.python.org/mailman/listinfo/distutils-sig
>> 
>> 
>> 
>> I dunno!
>> 
>> I don’t see any reason why that would be the case, it’s possible that there
>> is a bug in the rsyslog-cdn.py script. I’m not sure. I’m planning on
>> rewriting
>> that soon anyways to be tons better.
> 
> Out of curiosity, where in source control is that script located?
> 
> --Chris


https://bitbucket.org/pypa/pypi/src/91c9ddbdf4222d982a01dd09f29ab9e184422e71/tools/rsyslog-cdn.py?at=default
 


That processes incoming logs from Fastly and puts them into reds. The download
rollups (last day, week, month) are pulled directly from Fastly. The total 
download
counts come from that and are processed once an hour by:

https://bitbucket.org/pypa/pypi/src/91c9ddbdf4222d982a01dd09f29ab9e184422e71/tools/integrate-redis-stats.py?at=default
 


---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] how can projects with no files have downloads?

2014-09-14 Thread Chris Jerdonek
On Sun, Sep 14, 2014 at 1:03 PM, Donald Stufft  wrote:
>
> On Sep 14, 2014, at 1:58 PM, holger krekel  wrote:
>
> Hi Donald, all,
>
> I sometimes have doubts that the download numbers as shown by
> pypi.python.org are correct.  Here is one case where i am pretty sure
> something is wrong:
>
> https://pypi.python.org/pypi/pytes
>
> That's a project a friend uploaded after he heart me saying at my devpi
> talk at EP2014 that i sometimes type "pip install pytes" :) It never had
> files ASFAIK but has "18 downloads". How comes?
>
> holger
> ___
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
>
>
> I dunno!
>
> I don’t see any reason why that would be the case, it’s possible that there
> is a bug in the rsyslog-cdn.py script. I’m not sure. I’m planning on
> rewriting
> that soon anyways to be tons better.

Out of curiosity, where in source control is that script located?

--Chris
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] how can projects with no files have downloads?

2014-09-14 Thread Donald Stufft

> On Sep 14, 2014, at 1:58 PM, holger krekel  wrote:
> 
> Hi Donald, all,
> 
> I sometimes have doubts that the download numbers as shown by
> pypi.python.org are correct.  Here is one case where i am pretty sure
> something is wrong:
> 
> https://pypi.python.org/pypi/pytes
> 
> That's a project a friend uploaded after he heart me saying at my devpi
> talk at EP2014 that i sometimes type "pip install pytes" :) It never had
> files ASFAIK but has "18 downloads". How comes?
> 
> holger
> ___
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> https://mail.python.org/mailman/listinfo/distutils-sig


I dunno! 

I don’t see any reason why that would be the case, it’s possible that there
is a bug in the rsyslog-cdn.py script. I’m not sure. I’m planning on rewriting
that soon anyways to be tons better.

---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] how can projects with no files have downloads?

2014-09-14 Thread holger krekel
Hi Donald, all,

I sometimes have doubts that the download numbers as shown by
pypi.python.org are correct.  Here is one case where i am pretty sure
something is wrong:

https://pypi.python.org/pypi/pytes

That's a project a friend uploaded after he heart me saying at my devpi
talk at EP2014 that i sometimes type "pip install pytes" :) It never had
files ASFAIK but has "18 downloads". How comes?

holger
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] Installing namespace packages with pip inserts strange modules into sys.modules

2014-09-14 Thread PJ Eby
On Fri, Sep 12, 2014 at 3:55 PM, Erik Bray  wrote:
> Unfortunately there are some dark corners of setuptools I've
> encountered where namespace packages don't work properly during
> installation *unless* they were installed in the old-fashioned
> setuptools way.  I'll have to see if I can dig up what those cases
> are, because they should be fixed.

I don't know if this is what you had in mind, but, the main problem I
know of with changing setuptools to not install the .pth files, is
that if you already have any __init__.py's installed (and possibly,
any namespace .pth files to go with them), then the newly-installed
package isn't going to work.  PEP 420 only takes effect if there are
no existing __init__.py files for the namespace.

In other words, it's not just a matter of changing how things are
installed, it's also a matter of upgrading existing environments with
things installed by older installation tools.
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig