git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] mingw: disable Python

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 8, 2010, 13:35 UTC
Message-ID
<7vpr5kpvmh.fsf@alter.siamese.dyndns.org>
In-Reply-To
<40aa078e1001080249t16b0ee01i5ceb8e7ad2426e70@mail.gmail.com>
Erik Faye-Lund <kusmabite@googlemail.com> writes:
Show 22 quoted lines
>> On Fri, 8 Jan 2010, Johannes Sixt wrote:
>>
>>> Erik Faye-Lund schrieb:
>>> > Python is not commonly installed on Windows machines, so
>>> > we should disable it there by default.
>>> >
>>> > --- a/Makefile
>>> > +++ b/Makefile
>>> > @@ -1027,6 +1027,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
>>> > +   NO_PYTHON = YesPlease
>>>
>>> I'm worried that with this solution it is impossible to re-enable Python
>>> in config.mak (how do you undefine a Makefile variable?);
>
>> How about
>>
>>        NO_PYTHON=
>>
>> in config.mak?
>
> That doesn't work for me, at least not out of the box. NO_PYTHON is
> still defined, it's just defined to an empty string.

I think Dscho is right. "ifdef FOO" yields (and should yield) false if FOO is set to empty.

-- >8 -- cut here and try it for yourself -- >8 -- #!/bin/sh

rm -f config.mk
cat >Makefile <<\EOF
# The default is...
all::
FROTZ = NITFOL
-include config.mk
ifdef FROTZ
all::
	echo FROTZ is $(FROTZ)
else
all::
	echo FROTZ is not defined
endif
EOF

make # says "NITFOL"

echo "FROTZ =" >config.mk make # says "not defined"

exit -- 8< --

Previous: Erik Faye-LundNext: Johannes Sixt
Message 7 of 9 in “mingw: enable NO_PYTHON”
  1. mingw: enable NO_PYTHONErik Faye-Lund, Jan 7, 2010
  2. Erik Faye-LundJan 7, 2010
  3. mingw: disable PythonErik Faye-Lund, Jan 7, 2010
  4. Johannes SixtJan 8, 2010
  5. Johannes SchindelinJan 8, 2010
  6. Erik Faye-LundJan 8, 2010
  7. Junio C HamanoJan 8, 2010
  8. Johannes SixtJan 8, 2010
  9. Erik Faye-LundJan 8, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.