[Python-checkins] commit of r41834 - in python/trunk: Misc/NEWS Modules/Setup.dist

Guido van Rossum guido at python.org
Wed Dec 28 16:49:14 CET 2005


Hm. Methinks that the distutils code should have been patched to
survive the possibility of "import pwd" failing (or pwd.getpwuid()
failing!) rather than hiding the problem by forcing pwd to be built.
The latter seems a much less robust solution.

--Guido

On 12/27/05, reinhold.birkenfeld <python-checkins at python.org> wrote:
> Author: reinhold.birkenfeld
> Date: Tue Dec 27 18:37:07 2005
> New Revision: 41834
>
> Modified:
>    python/trunk/Misc/NEWS
>    python/trunk/Modules/Setup.dist
> Log:
> [ 959576 ] Can't build Python on POSIX w/o $HOME
>
>
>
> Modified: python/trunk/Misc/NEWS
> ==============================================================================
> --- python/trunk/Misc/NEWS      (original)
> +++ python/trunk/Misc/NEWS      Tue Dec 27 18:37:07 2005
> @@ -12,6 +12,9 @@
>  Core and builtins
>  -----------------
>
> +- Bug #959576: The pwd module is now builtin. This allows Python to be
> +  built on UNIX platforms without $HOME set.
> +
>  - Bug #1072182, fix some potential problems if characters are signed.
>
>  - Bug #889500, fix line number on SyntaxWarning for global declarations.
>
> Modified: python/trunk/Modules/Setup.dist
> ==============================================================================
> --- python/trunk/Modules/Setup.dist     (original)
> +++ python/trunk/Modules/Setup.dist     Tue Dec 27 18:37:07 2005
> @@ -111,6 +111,8 @@
>
>  posix posixmodule.c            # posix (UNIX) system calls
>  errno errnomodule.c            # posix (UNIX) errno values
> +pwd pwdmodule.c                        # this is needed to find out the user's home dir
> +                               # if $HOME is not set
>  _sre _sre.c                    # Fredrik Lundh's new regular expressions
>  _codecs _codecsmodule.c                # access to the builtin codecs and codec registry
>
> @@ -186,7 +188,6 @@
>  # supported...)
>
>  #fcntl fcntlmodule.c   # fcntl(2) and ioctl(2)
> -#pwd pwdmodule.c               # pwd(3)
>  #spwd spwdmodule.c             # spwd(3)
>  #grp grpmodule.c               # grp(3)
>  #select selectmodule.c # select(2); not on ancient System V
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>


--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-checkins mailing list