Skip to content

Conda-installed MinGW not used by cython (distutils?) #26

Closed

Description

@yw5aj

How to repeat the problem on WinPython 3.4 64-bit on Windows 7 64-bit:

  1. Install pycosat and conda using the binaries provided by Chris Gholke;
  2. Do :
    conda init
    conda install mingw
  3. What I did is I wrote a simple pyx code and tried to compile it using distutils described here: http://docs.cython.org/src/quickstart/build.html#building-a-cython-module-using-distutils
  4. We can see that the conda-installed MinGW is not used.

A few points that stonebig and I discovered:

  1. If I do where gcc, it will find conda-installed gcc.bat first. However, it is just not used.
  2. If we prepend $WINPYDIR$\MinGW\bin at PATH in line 5 of the env.bat found in WinPythonDir\scripts, this problem goes away.

Activity

  1. yw5aj commented on Nov 14, 2014

    @yw5aj
    ContributorAuthor

    @stonebig I tried to summarize it and post it as a bug here.

  2. stonebig commented on Apr 17, 2015

    @stonebig
    Contributor

    Carl has now an account on binstar, which may be the way to go if you want conda + mingw64 integration: https://pypi.binstar.org/carlkl

    I'll update to Carl Kleffner's April17th toolchain next Winpython version.

  3. added 2 commits that reference this issue on Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions