Plans for a build command or --user support for pysetup3?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Plans for a build command or --user support for pysetup3?

Brett Cannon-2
I just tried creating a setup.cfg for coverage.py as
distribute_setup.py was hanging when run by Python default (worked
fine when I installed it directly). Two things that I missed was
wanting a build command (having trouble compiling coverage.py's
extension module) and --user suport for install.

Are either of those planned or in the works? If not, any specific reason why?
_______________________________________________
Distutils-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/distutils-sig
Reply | Threaded
Open this post in threaded view
|

Re: Plans for a build command or --user support for pysetup3?

Éric Araujo
Hi Brett,

> Two things that I missed was wanting a build command
A clarification: In distutils2, there is a difference between commands
(build, sdist, upload, i.e. similar to distutils commands) and actions
(metadata, list, search, run).  The pysetup install action is a
high-level interface to install a remote or local project.  If you’re
using it on a local setup.cfg-based project, then it will call the build
and install commands.

Now to answer your question: To call a command, use the run action:
   $ pysetup run build

> --user suport for install.
I’ve been surprised to discover that the install action lacks options to
control the target directory.  It’s probably because the action is not
complete yet.  IMO, we should support --user, --prefix, --home and all
other options supported by the install command itself.  I intended to
open a feature request for that; feel free to do it.

Regards
_______________________________________________
Distutils-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/distutils-sig
Reply | Threaded
Open this post in threaded view
|

Re: Plans for a build command or --user support for pysetup3?

Éric Araujo
Oh and BTW, I am working on huge patches
(http://bugs.python.org/issue12779) to update the packaging
documentation in the 3.3 docs.  If you find non-working things in the
current doc, it’s expected.
_______________________________________________
Distutils-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/distutils-sig
Reply | Threaded
Open this post in threaded view
|

Re: Plans for a build command or --user support for pysetup3?

Brett Cannon-2
In reply to this post by Éric Araujo
http://bugs.python.org/issue12937 has the feature request.

On Tue, Sep 6, 2011 at 08:17, Éric Araujo <[hidden email]> wrote:

> Hi Brett,
>
>> Two things that I missed was wanting a build command
> A clarification: In distutils2, there is a difference between commands
> (build, sdist, upload, i.e. similar to distutils commands) and actions
> (metadata, list, search, run).  The pysetup install action is a
> high-level interface to install a remote or local project.  If you’re
> using it on a local setup.cfg-based project, then it will call the build
> and install commands.
>
> Now to answer your question: To call a command, use the run action:
>   $ pysetup run build
>
>> --user suport for install.
> I’ve been surprised to discover that the install action lacks options to
> control the target directory.  It’s probably because the action is not
> complete yet.  IMO, we should support --user, --prefix, --home and all
> other options supported by the install command itself.  I intended to
> open a feature request for that; feel free to do it.
>
> Regards
>
_______________________________________________
Distutils-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/distutils-sig