[Nix-dev] Re: Python `setuptools' reverted to `builderDefs'

Michael Raskin 7c6f434c at mail.ru
Mon May 25 00:45:51 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ludovic Courtès wrote:
>> Log:
>> Restoring builderDefs functionality in setuptools
> 
> I'm the one who changed the `setuptools' expression to `stdenv' a few

I noticed..

> days ago when I updated it and fixed `easy_install'.  I made this choice

I assumed these updates were the core intent of your commit and did my
best to preserve them.

> because it simply seemed more readable to me, as I don't grasp
> builderDefs.
> 
> Why did you revert this change?

builderDefs were introduced for easier extensibility than setup.sh (not
needed here) and flexibility (which I need here). I do need to be able
to create setuptools with different base Python instances easily.

Rationale: mandatory huge Python build for everyone is bloatware.
Building OpenOffice on my notebook is annoying. So I need setuptools etc
with a small Python build. ViewMTN is written in Python and requires
many features to be built-in during Python compilation. So I need a
second Python.

> The reason why I'm concerned is that `setuptools' is at the core of the
> `buildPythonPackage' function I just introduced and I want to make sure
> (i) that I understand what goes on, and (ii) that the whole thing is
> homogeneous, again to facilitate understanding.

Build setuptools-builder and read it. It is easier to understand than
setup.sh conditional sourcing of variables... Entire builderDefs
endeavor was just about conveniently generating these builders. The idea
of builderDefs that you have "phases" - command sequences. Each phase
may require some other phases to be executed before it. The
implementation details are immaterial - it is better to check that
generated builder fits your needs.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJKGc4XAAoJEE6tnN0aWvw3SS4IAIwQCbDhWp3atH5rSMnzbZbd
HaHUzmWOIE6/05edj2bS/5aZSfBjWvH5NzPNN8GmxDzPO790V1jXDAea94Qr+70v
THO+K6eVkzeo+WjwZAt8WQlsylcCACVFtA6LDj+b9LHIaJxxGPg62QcbISrcl9QX
jM59eCigSpYXjhS7A7d4hAZgBrSKbJemaE1ELjvw8HxR5BZMy4+99KO9amfLxQE+
9dRKQY/OCKr1wTkFAZVU4F8BF3gAHpx0HcpiRzP4lok3NvNyvObjyLyGo28M191m
Rva208jBCa2VmIApyUp5l9IlgqZFEkLWMTpKSUji3xiKvmMPgD/8lnJ58TmqZLQ=
=Qkmq
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list