Skip to content

Instantly share code, notes, and snippets.

View srid's full-sized avatar
🌤️
a smoothly flowing moment of clear experiencing

Sridhar Ratnakumar srid

🌤️
a smoothly flowing moment of clear experiencing
View GitHub Profile
@srid
srid / (old) dependency.py
Created January 8, 2010 19:40
dependency.py - r940
# Copyright (c) 2009 ActiveState Software Inc.
# See http://www.activestate.com/activepython/license/ for licensing
# information.
"""
pypm.client.dependency
~~~~~~~~~~~~~~~~~~~~~~
This module contains package dependency related functionality
"""
@srid
srid / (new) dependency.py
Created January 8, 2010 19:42
dependency.py - refactored
# Copyright (c) 2009 ActiveState Software Inc.
# See http://www.activestate.com/activepython/license/ for licensing
# information.
"""
pypm.client.dependency
~~~~~~~~~~~~~~~~~~~~~~
This module contains package dependency related functionality
"""
import sys
import os
from os.path import (abspath, basename, exists, isfile, isdir,
pardir, join, dirname, relpath, realpath)
import tarfile
import zipfile
from contextlib import closing
from pypm.common import console
make: [build_chm] create TOC file 'build\py2_5_4-win64-x64-apy25\docs\chm\ActivePython25.hhc'
make: [build_chm] create index file 'build\py2_5_4-win64-x64-apy25\docs\chm\ActivePython25.hhk'
make: [build_chm] running 'python C:\HOME\as\apy\branches\2.5.5\build\py2_5_4-win64-x64-apy25\python\Doc\tools\prechm.py -v 2.5 -c
-p ActivePython25' in 'build\py2_5_4-win64-x64-apy25\docs\chm\python'
Building Index...
Main page - None
Global Module Index - None
What's New - None
Tutorial - None
Library Reference - genindex.html
@srid
srid / pep370-fix.patch
Created January 27, 2010 02:39
Make hg.bat of mercurial work in ActivePython's PyPM. See: http://stackoverflow.com/questions/2143897
A fix for http://mercurial.selenic.com/bts/issue1939
Index: mercurial-1.4.2/contrib/win32/hg.bat
===================================================================
--- mercurial-1.4.2.orig/contrib/win32/hg.bat 2010-01-26 17:47:24.906664318 -0800
+++ mercurial-1.4.2/contrib/win32/hg.bat 2010-01-26 18:02:13.546670215 -0800
@@ -4,9 +4,10 @@
setlocal
set HG=%~f0
accordionwidget
achoo
adapt
adpasswd
adytum-pymonitor
agenda2pdf
aglyph
akismet
amqplib
animgifviewer
ActivePython 2.6.4.10 (ActiveState Software Inc.) based on
Python 2.6.4 (r264:75706, Jan 22 2010, 16:40:49)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.asctime((2010, 1, -1, 18, 0, 0, 0, 0, -1))
'Mon Jan -1 18:00:00 2010'
>>>
$ pip install http://sourceforge.net/projects/pychecker/files/pychecker/0.8.18/pychecker-0.8.18.tar.gz/download
Index: lib/cmdln.py
===================================================================
--- lib/cmdln.py (.../trunk) (revision 75)
+++ lib/cmdln.py (.../branches/cfg) (revision 75)
@@ -30,7 +30,7 @@
retval = shell.main()
sys.exit(retval)
-See the README.txt or <http://trentm.com/projects/cmdln/> for more
+See the README.txt or <http://code.google.com/p/cmdln/> for more