Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mingw: include the Python parts in the build #1306

Closed
wants to merge 3 commits into from

Commits on Jul 29, 2022

  1. windows: include the Python bits when building Git for Windows

    While Git for Windows does not _ship_ Python (in order to save on
    bandwidth), MSYS2 provides very fine Python interpreters that users can
    easily take advantage of, by using Git for Windows within its SDK.
    
    Previously, we excluded the Python bits, mostly due to historical
    reasons: In the Git for Windows v1.x days, we built Git using
    MSys/MinGW, without support for any Python scripts.
    
    Therefore, let's move out the `NO_PYTHON` definition from the generic
    part of the MINGW section (which includes special handling for MSYS2/Git
    for Windows, for the long-superseded msysGit environment, as well as for
    the setup of probably just one developer remaining with their MSys1)
    into the two sections that cover different environments than Git for
    Windows' SDK.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    dscho committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    5d9b087 View commit details
    Browse the repository at this point in the history
  2. mingw: remove unneeded NO_GETTEXT directive

    In f9206ce (mingw: let's use gettext with MSYS2, 2016-01-26), we
    flipped the switch to build Git for Windows with support for gettext.
    
    However, the way we flipped the switch was by changing the value of the
    `NO_GETTEXT` variable from a non-empty string to the empty string, as if
    there was any `NO_GETTEXT` definition we needed to override.
    
    But that was a mistake: while there _is_ a definition, it is in the
    `THIS_IS_MSYSGIT` section, i.e. it does not affect the Git for Windows
    part at all.
    
    Let's just remove that unnecessary line.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    dscho committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    019fb83 View commit details
    Browse the repository at this point in the history
  3. mingw: remove unneeded NO_CURL directive

    In df5218b (config.mak.uname: support MSys2, 2016-01-13), we
    introduced support for building Git for Windows in the then-brand new
    Git for Windows v2.x build environment that was based off of MSYS2.
    
    To do that, we split the non-msysGit part (that targeted MSys1) in two,
    and instead of sharing the `NO_CURL = YesPlease` setting with MSys1, we
    overrode it for MSYS2 with the empty value because we very much want to
    build Git for Windows with libcurl.
    
    But that was unnecessary: we never set that variable beforehand,
    therefore there is no need to override it.
    
    Let's just remove that unnecessary line.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    dscho committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    7dc0a1a View commit details
    Browse the repository at this point in the history