Re: [Distutils] defining requirements on pypi

2014-08-28 Thread Vinay Sajip
> PyPI won’t show metadata for Wheels either unless you upload them with Twine Why is that, exactly? Is there something alternate tools would need to do to achieve the same thing? Regards, Vinay Sajip From: Donald Stufft To: Daniel Holth Cc: Brett Graham ;

Re: [Distutils] defining requirements on pypi

2014-08-28 Thread Donald Stufft
Send the data when they upload. > On Aug 28, 2014, at 6:46 PM, Vinay Sajip wrote: > > > PyPI won’t show metadata for Wheels either unless you upload them with Twine > > Why is that, exactly? Is there something alternate tools would need to do to > achieve the same thing? > > Regards, > > Vin

Re: [Distutils] Handling Case/Normalization Differences

2014-08-28 Thread Nick Coghlan
On 29 Aug 2014 08:27, "Donald Stufft" wrote: > > > Just thought of this, if the normalized name doesn’t match the "real" name, > then add entries for both. This will make it so that pip 1.5 continues to work > and pip 1.6+. Having bandersnatch mirrors publish under both names sounds like a good a

Re: [Distutils] defining requirements on pypi

2014-08-28 Thread Brett Graham
Thanks for testing it and extra info! It sounds like I 'fixed' the problem in the not-recommended way of including requirements.txt in the MANIFEST.in. I've been using a pretty hefty setup.py: https://github.com/braingram/simple_setup that attempts to auto-parse and detect 'everything' (finding p

Re: [Distutils] Handling Case/Normalization Differences

2014-08-28 Thread Donald Stufft
Since pip 1.4 it does yes, however the problem here is that typically bandersnatch mirrors are simply hosted by plain static web servers and don’t require any sort of runtime logic. > On Aug 28, 2014, at 6:39 PM, Joe Smith wrote: > > Naive question- does pip send over a UserAgent (or something

Re: [Distutils] Handling Case/Normalization Differences

2014-08-28 Thread Joe Smith
Naive question- does pip send over a UserAgent (or something) that contains a version number the server can use to determine which behavior to default to? That would allow a deprecation cycle of N months or so that will let people upgrade from 1.5 to 1.6. We could then watch usage of 1.5 decrease

Re: [Distutils] Undefined symbol when loading a library using dlopen

2014-08-28 Thread Erik Bray
On Tue, Aug 26, 2014 at 5:54 PM, Jerome Fuselier wrote: > Hello, > > I'm trying to wrap a C++ library which uses dlopen to load a dynamic library > and I don't manage to get rid of an "undefined symbol" error. > > I tried to simulate my problem with a simpler example so hopefully someone > may be

Re: [Distutils] Handling Case/Normalization Differences

2014-08-28 Thread Donald Stufft
> On Aug 28, 2014, at 6:09 PM, Donald Stufft wrote: > > >> On Aug 28, 2014, at 2:58 PM, Donald Stufft > > wrote: >> >> Right now the “canonical” page for a particular project on PyPI is whatever >> the >> author happened to name their package (e.g. Django). This requi

Re: [Distutils] Handling Case/Normalization Differences

2014-08-28 Thread Donald Stufft
> On Aug 28, 2014, at 2:58 PM, Donald Stufft wrote: > > Right now the “canonical” page for a particular project on PyPI is whatever > the > author happened to name their package (e.g. Django). This requires PyPI to > have > some "smarts" so that it can redirect things like /simple/django/ to >

Re: [Distutils] defining requirements on pypi

2014-08-28 Thread Donald Stufft
PyPI doesn’t parse anything, metadata is passed alongside the file upload. This means that for sdists it would just need modified to communicate that information to PyPI. PyPI won’t show metadata for Wheels either unless you upload them with Twine. > On Aug 28, 2014, at 6:02 PM, Daniel Holth

Re: [Distutils] defining requirements on pypi

2014-08-28 Thread Daniel Holth
Pypi only parses requirements from wheels for display but this doesn't affect installation. On Aug 28, 2014 7:49 AM, "Brett Graham" wrote: > Hi, > > I feel like these are stupid questions but I cannot seem to find a > straight answer. > > In brief, > > 1) what is egg-info/requires.txt used for? >

Re: [Distutils] Packages that have problems being installed from wheels

2014-08-28 Thread Paul Moore
On 28 August 2014 21:33, Joost Molenaar wrote: > Question; would it help to use pkg_resources, or being able to specify > locations > relative to the python interpreter prefix? Generally, I'd recommend putting resource files in the package directory and reading them via pkgutil.get_data (from th

Re: [Distutils] Packages that have problems being installed from wheels

2014-08-28 Thread Joost Molenaar
FWIW, I did whip up a test case just now, I put it up at github[1]. The second commit works correctly, but not the first or the third. For Ansible and Fabric, IMO it's not necessary to put the files in /usr/share. It's just that they need somewhere to put those things and be able to get at them at

Re: [Distutils] Packages that have problems being installed from wheels

2014-08-28 Thread Paul Moore
On 28 August 2014 20:35, Donald Stufft wrote: >> Both Ansible and Fabric want to put stuff in /usr/share, >> which doesn't work from a .whl file but does from the sdist. > > This should be possible I think, that’s just the “data” scheme. Maybe > the tooling isn’t quite set up for it? There is an

Re: [Distutils] Packages that have problems being installed from wheels

2014-08-28 Thread Donald Stufft
> On Aug 28, 2014, at 3:24 PM, Joost Molenaar wrote: > > On Aug 27, 2014 8:50 AM, "Paul Moore" wrote: >> >> tl; dr; If you know of a project that can't be successfully installed >> with "pip wheel proj; pip install /path/to/the/wheel.whl" can you let >> me know the details? > > Both Ansible a

Re: [Distutils] Packages that have problems being installed from wheels

2014-08-28 Thread Joost Molenaar
On Aug 27, 2014 8:50 AM, "Paul Moore" wrote: > > tl; dr; If you know of a project that can't be successfully installed > with "pip wheel proj; pip install /path/to/the/wheel.whl" can you let > me know the details? Both Ansible and Fabric want to put stuff in /usr/share, which doesn't work from a

[Distutils] Handling Case/Normalization Differences

2014-08-28 Thread Donald Stufft
Right now the “canonical” page for a particular project on PyPI is whatever the author happened to name their package (e.g. Django). This requires PyPI to have some "smarts" so that it can redirect things like /simple/django/ to /simple/Django/ otherwise someone doing ``pip install django`` would f

Re: [Distutils] defining requirements on pypi

2014-08-28 Thread Marcus Smith
On Wed, Aug 27, 2014 at 2:51 PM, Brett Graham wrote: > Hi, > > I feel like these are stupid questions but I cannot seem to find a > straight answer. > > In brief, > > 1) what is egg-info/requires.txt used for? > 2) how do I properly define requirements for pypi? > > The details are: > > I'm updat

Re: [Distutils] Packages that have problems being installed from wheels

2014-08-28 Thread Nick Coghlan
On 28 Aug 2014 05:56, "Daniel Holth" wrote: > > Tell me more about setup-requires. It's nice to hear it has users. Should we promote it to a pypa project? That would be cool - bootstrapping as much as we can *without* metadata 2.0 has the virtue of working in many more environments :) Cheers, Ni

[Distutils] requirements on pypi: what is egg.info/requires.txt?

2014-08-28 Thread braingram
Hi, I feel like these are stupid questions but I cannot seem to find a straight answer. In brief, 1) what is egg-info/requires.txt used for? 2) how do I properly define requirements for pypi? The details are: I'm updating some packages on pypi and am having difficulty defining requirements. O

[Distutils] defining requirements on pypi

2014-08-28 Thread Brett Graham
Hi, I feel like these are stupid questions but I cannot seem to find a straight answer. In brief, 1) what is egg-info/requires.txt used for? 2) how do I properly define requirements for pypi? The details are: I'm updating some packages on pypi and am having difficulty defining requirements. O