Re: [Distutils] Module from install breaks subsequent install of different distribution

2015-01-20 Thread Nick Coghlan
On 20 Jan 2015 09:11, "Ben Finney" wrote: > > Tres Seaver writes: > > > On 01/19/2015 04:57 PM, Ben Finney wrote: > > > My current position would be: that's a bug in Setuptools, it should > > > not be applying entry points defined for package FOO when running the > > > setup for some other packag

Re: [Distutils] Python module for use in ‘setup.py’ but not to install

2015-01-20 Thread Barry Warsaw
On Jan 19, 2015, at 07:23 PM, Ben Finney wrote: >My understanding, based on an answer received elsewhere [0], is that >omitting the file from ‘setup.py’ but adding it to ‘MANIFEST.in’ causes >it to be included in the sdist but omitted from install targets. I haven't read the whole thread (no time

Re: [Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

2015-01-20 Thread Ben Finney
Donald Stufft writes: > setuptools does not offer the ability to have only build time entry > points, it assumes the installed project supplies those entry points. I'm now convinced that Setuptools entry points are not suitable to this purpose. > spin it out into it’s own thing that can be inst

Re: [Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

2015-01-20 Thread Ben Finney
Daniel Holth writes: > Have you had a go with https://bitbucket.org/dholth/setup-requires ? Thanks for the pointer. > My version of setup-requires replaces setup.py with a short script Why two separate files? Why not add the code in ‘setup.py’, prior to the ‘setup()’ call? > that uses pip to

Re: [Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

2015-01-20 Thread Carl Meyer
On 01/20/2015 07:28 PM, Ben Finney wrote: > What I need is a way to express “ensure Docutils is installed before > continuing with other Setuptools actions” in ‘setup.py’. I don't know of > a neat way to tell Setuptools that. That is the precise purpose of the `setup_requires` kwarg. `setup_requi

Re: [Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

2015-01-20 Thread Ben Finney
Marius Gedminas writes: > You shouldn't ever define an entry point that points to a package or > module that won't be installed. This has now become clear. Thanks to everyone in this series of threads who has explained this. My preference of course was to avoid entry points, but it seemed a way

Re: [Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

2015-01-20 Thread Ben Finney
Carl Meyer writes: > On 01/20/2015 07:28 PM, Ben Finney wrote: > > What I need is a way to express “ensure Docutils is installed before > > continuing with other Setuptools actions” in ‘setup.py’. I don't > > know of a neat way to tell Setuptools that. > > That is the precise purpose of the `setu

Re: [Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

2015-01-20 Thread Daniel Holth
Just use my script. Once new-metadata has been standardized pip itself will know how to install build (setup) requirements and the script will be obsolete. Until then I think you will find it works. On Jan 20, 2015 10:27 PM, "Ben Finney" wrote: > Carl Meyer writes: > > > On 01/20/2015 07:28 PM,

Re: [Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

2015-01-20 Thread Michael Merickel
On Tue, Jan 20, 2015 at 9:27 PM, Ben Finney wrote: > Is there an API within Distutils or Setuptools that allows me to say “I > haven't declared anything yet but go get and install distribution FOO > right now”? I could do that before importing the module which needs > Docutils. What you're asking

Re: [Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

2015-01-20 Thread Donald Stufft
> On Jan 20, 2015, at 10:27 PM, Ben Finney wrote: > > Carl Meyer writes: > >> On 01/20/2015 07:28 PM, Ben Finney wrote: >>> What I need is a way to express “ensure Docutils is installed before >>> continuing with other Setuptools actions” in ‘setup.py’. I don't >>> know of a neat way to tell S

Re: [Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

2015-01-20 Thread Donald Stufft
> On Jan 20, 2015, at 10:50 PM, Daniel Holth wrote: > > Just use my script. Once new-metadata has been standardized pip itself will > know how to install build (setup) requirements and the script will be > obsolete. Until then I think you will find it works. > > One downside to https://bit