Skip to content

Instantly share code, notes, and snippets.

Ray Donnelly mingwandroid

Block or report user

Report or block mingwandroid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Work on updating checksums automatically (caution, do not use in general)
import os
from conda_build import api
from conda_build.config import Config
from json import dumps
from import hash_url
def pp(jason):
print(dumps(jason, indent=4, sort_keys=True))
def main():

Keybase proof

I hereby claim:

  • I am mingwandroid on github.
  • I am mingwandroid ( on keybase.
  • I have a public key ASCnRy2Y9Byxmjh_EZZGOz1eMAIwV_4bbW2IL8RfgE1I_Ao

To claim this, I am signing this object:

View Hack around relative import issues in PyCharm
From c00daa30990e9c7a9733748f652e22928470380e Mon Sep 17 00:00:00 2001
From: Ray Donnelly <>
Date: Sun, 14 Oct 2018 19:53:16 +0100
Subject: [PATCH] PyCharm debugging support
conda/ | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/conda/ b/conda/
View gist:a288a946449e41775cce32dc31f10aae
import argparse
from conda.base.constants import CONDA_TARBALL_EXTENSIONS
except Exception:
from conda.base.constants import CONDA_TARBALL_EXTENSION
from conda_build import environ
from conda_build import utils
from conda_build.conda_interface import memoized, iteritems
from conda_build.os_utils.liefldd import (get_exports, get_imports,
View gist:e8c5bfabd7ce33cbe19adf27abce8e32
echo "activate, PATH=$PATH"
echo "activate, PWD=$PWD"
# The arguments to this are:
# 1. activation nature {activate,deactivate}
# 2. toolchain nature {build,host}
# 3. machine (should match -dumpmachine)
# 4. prefix (including the final -)
from conda_build import api
from conda_build.config import Config
import jinja2
import os
import sys
import ruamel_yaml
from tempfile import TemporaryDirectory
HTML = '''
mingwandroid / mc-opts
Created Jun 14, 2016
Shell script that I use to bootstrap my conda environments (it's always in-flux)
View mc-opts
#!/usr/bin/env bash
if [[ -n $BASH_VERSION ]] && [[ "$(basename "$0" 2> /dev/null)" == "mc-opts" ]]; then
>&2 echo "Error: mc must be sourced. Run 'source $0 $*'"
exit 1
script_dir=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
while [ "$#" -gt 0 ]; do
View gist:c6ca9664681c030edc4ebbc63eb92e80
diff --git a/conda_build/ b/conda_build/
index 50d1d11..3f558b4 100644
--- a/conda_build/
+++ b/conda_build/
@@ -14,8 +14,12 @@ def find_executable(executable):
if sys.platform == 'win32':
dir_paths = [join(config.build_prefix, 'Scripts'),
join(config.build_prefix, 'Library\\bin'),
+ join(config.build_prefix, 'Library\\mingw-w64\\bin'),
+ join(config.build_prefix, 'Library\\usr\\bin'),
View gist:d3d7e9c2614016b72d09
@echo off
REM We can do better later.
if exist C:\msys64 (
set MSYS2=C:\msys64
) else (
set MSYS2=C:\msys32
if "%MSYS2%" == "" exit 1
View gist:7bba87e614f6c954f604
$ cat test.c
#include "E:/python34/include/python.h"
int DLLMain()
PyObject * test = Py_None;
return 0;
$ PATH=/mingw64/bin:$PATH gcc -shared -L/e/Python34/libs/ -lpython34 -c test.c -o test.dll
You can’t perform that action at this time.