all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Enge <andreas@enge.fr>
To: Cyril Roelandt <tipecaml@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Improving the Python build system.
Date: Sun, 1 Sep 2013 15:27:26 +0200	[thread overview]
Message-ID: <20130901132726.GB1699@debian> (raw)
In-Reply-To: <521A936C.3040900@gmail.com>

On Mon, Aug 26, 2013 at 01:29:48AM +0200, Cyril Roelandt wrote:
> Andreas, could you please send us your Python modules that fail
> because of setuptools ? I think these packages require setuptools
> instead of distutils (which comes with Python), so we'll probably
> have to package setuptools. Both are quite similar, so the
> "python-build-system" can probably be used anyway. Otherwise, we'll
> have to write a build system per tool
> (distutils/distutils2/setuptools/bento).

Probably (once the python changes dust settles), it will be enough to simply
add setuptools as an input to the packages.

I would like to suggest a few modifications to the python build system
resulting from discussions with Brandon Invergo at the GHM. If I understood
correctly, then "setup.py check" only makes some basic checks on the package
and can be safely dropped. This is corroborated by
   python setup.py --help-commands | grep check
on pytz, for instance, which displays
   check             perform some checks on the package

However, "python setup.py --help-commands | grep test":
   test              run unit tests after in-place build
I think this it what we would like to do in the check phase.

Then it is possible to also separate the build and install phases:
   build             build everything needed to install

I think we would like to add such a phase.

Stylistically, they should probably be obtained by a call to one function
returning a procedure calling setup.py with "build", "test" and "install",
respectively, instead of copy-pasting three times the same code.

There is another mild complication: The binary should be called "python3"
instead of "python" under Python 3.

What do you think?

Andreas

  reply	other threads:[~2013-09-01 13:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-25 23:29 Improving the Python build system Cyril Roelandt
2013-09-01 13:27 ` Andreas Enge [this message]
2013-09-02 19:46   ` Ludovic Courtès
2013-09-02 20:51     ` Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130901132726.GB1699@debian \
    --to=andreas@enge.fr \
    --cc=guix-devel@gnu.org \
    --cc=tipecaml@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.