Skip to content

Instantly share code, notes, and snippets.

@msarahan
msarahan / recipe_problems.patch
Created April 3, 2017 20:22
recipe suggestions
diff --git a/build/meta.yaml b/build/meta.yaml
index f615412..a276d6c 100644
--- a/build/meta.yaml
+++ b/build/meta.yaml
@@ -8,15 +8,16 @@ source:
build:
number: 1
string: py_{{PKG_BUILDNUM}}
+ skip: True # [py!=27]
@msarahan
msarahan / suggestions.patch
Created March 24, 2017 15:21
recipe change recommendations for @betranjacob
diff --git a/condarecipe/meta.yaml b/condarecipe/meta.yaml
index 23cfd3b..7f45fd9 100755
--- a/condarecipe/meta.yaml
+++ b/condarecipe/meta.yaml
@@ -6,19 +6,20 @@ package:
source:
path: ..
+build:
+ skip: True # [py<35]

Keybase proof

I hereby claim:

  • I am msarahan on github.
  • I am msarahan (https://keybase.io/msarahan) on keybase.
  • I have a public key ASCgbQYvxs8paTvJyarz6ff2C3e9Dpt_1ncKka0M93enjAo

To claim this, I am signing this object:

resources:
- name: project-a
type: git
source:
uri: https://github.com/msarahan/ci_test.git
- name: project-b
type: git
source:
uri: https://github.com/msarahan/ci_test.git
@msarahan
msarahan / post_diff.diff
Created October 3, 2016 23:43
Diff of post module from 1.21.14..2.0.2
diff --git a/conda_build/post.py b/conda_build/post.py
index 9ef0068..b94ee0b 100644
--- a/conda_build/post.py
+++ b/conda_build/post.py
@@ -1,6 +1,7 @@
from __future__ import absolute_import, division, print_function
from collections import defaultdict
+from functools import partial
from glob import glob
@msarahan
msarahan / utils_diff.diff
Last active October 3, 2016 23:14
Diff of changes in conda_build/utils.py from 1.21.14 to 2.0.2
diff --git a/conda_build/utils.py b/conda_build/utils.py
index c12fc44..a134205 100644
--- a/conda_build/utils.py
+++ b/conda_build/utils.py
@@ -1,70 +1,118 @@
from __future__ import absolute_import, division, print_function
+from collections import defaultdict
+import contextlib
+from difflib import get_close_matches
@msarahan
msarahan / AdminDeployment.xml
Created August 31, 2016 16:26
Install options for Visual CPP Build tools 2015
<?xml version="1.0" encoding="utf-8"?>
<AdminDeploymentCustomizations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment">
<BundleCustomizations TargetDir="default" NoCacheOnlyMode="default" NoWeb="default" NoRefresh="default" SuppressRefreshPrompt="default" Feed="default" />
<SelectableItemCustomizations>
<SelectableItemCustomization Id="Win81SDK_CppBuildSKUV1" Hidden="no" Selected="yes" FriendlyName="Windows 8.1 SDK" />
<SelectableItemCustomization Id="GitForWindowsV1" Hidden="no" Selected="no" FriendlyName="Git for Windows" />
<SelectableItemCustomization Id="VSUV1PreReqV1" Selected="yes" FriendlyName="Visual Studio 2015 Update 1 Prerequisite" />
<SelectableItemCustomization Id="VSUV2RTMV2" Selected="yes" FriendlyName="Visual Studio 2015 Update 2" />
<SelectableItemCustomization Id="VSUV2PreReqV1" Selected="yes" FriendlyName="Visual Studio 2015 Update 2 Prerequisite" />
<
@msarahan
msarahan / conda_imports
Created June 22, 2016 22:42
imports on Windows, recorded with ```python -v -c "import conda"```
C:\Users\builder>python -v -c "import conda"
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# C:\MC2x64\lib\site.pyc matches C:\MC2x64\lib\site.py
import site # precompiled from C:\MC2x64\lib\site.pyc
# C:\MC2x64\lib\os.pyc matches C:\MC2x64\lib\os.py
import os # precompiled from C:\MC2x64\lib\os.pyc
import errno # builtin
import nt # builtin
@msarahan
msarahan / gist:8b8e06f1ef1a5823d09b4cefc7465412
Created April 27, 2016 20:18
xmlrpc error with pypi.io
In [8]: client=xmlrpclib.ServerProxy("https://pypi.io/pypi")
In [9]: client.package_releases('roundup')
---------------------------------------------------------------------------
Fault Traceback (most recent call last)
<ipython-input-9-9eae23c7d1d4> in <module>()
----> 1 client.package_releases('roundup')
/Users/msarahan/anaconda2/lib/python2.7/xmlrpclib.pyc in __call__(self, *args)
1238 return _Method(self.__send, "%s.%s" % (self.__name, name))
@msarahan
msarahan / install_miniconda.txt
Last active April 4, 2016 18:45
BoxStarter install for Miniconda
$url = "https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe"
$output = "$PSScriptRoot\Miniconda3-latest-Windows-x86_64.exe"
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($url, $output)
#OR
(New-Object System.Net.WebClient).DownloadFile($url, $output)
$filepath = $PSScriptRoot\Miniconda3-latest-Windows-x86_64.exe
$args = "/S /D=C:\Miniconda3_x64"