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 rever.tools import hash_url
def pp(jason):
print(dumps(jason, indent=4, sort_keys=True))
def main():
View keybase.md

Keybase proof

I hereby claim:

  • I am mingwandroid on github.
  • I am mingwandroid (https://keybase.io/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 <mingw.android@gmail.com>
Date: Sun, 14 Oct 2018 19:53:16 +0100
Subject: [PATCH] PyCharm debugging support
---
conda/__init__.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/conda/__init__.py b/conda/__init__.py
View gist:a288a946449e41775cce32dc31f10aae
import argparse
try:
from conda.base.constants import CONDA_TARBALL_EXTENSIONS
except Exception:
from conda.base.constants import CONDA_TARBALL_EXTENSION
CONDA_TARBALL_EXTENSIONS = (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
#!/bin/bash
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 -)
View create_table_from_conda_build.py
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
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
fi
script_dir=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
while [ "$#" -gt 0 ]; do
View gist:c6ca9664681c030edc4ebbc63eb92e80
diff --git a/conda_build/external.py b/conda_build/external.py
index 50d1d11..3f558b4 100644
--- a/conda_build/external.py
+++ b/conda_build/external.py
@@ -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.