
details: http://www.bx.psu.edu/hg/galaxy/rev/e8a116c6bd96 changeset: 3033:e8a116c6bd96 user: Nate Coraor <nate@bx.psu.edu> date: Fri Nov 13 17:08:12 2009 -0500 description: Update PySQLite to latest version. This resolves bitbucket issue #101 diffstat: eggs.ini | 6 +- scripts/scramble/scripts/pysqlite.py | 44 +--------------------- 2 files changed, 5 insertions(+), 45 deletions(-) diffs (100 lines): diff -r db234dd18be4 -r e8a116c6bd96 eggs.ini --- a/eggs.ini Fri Nov 13 16:50:56 2009 -0500 +++ b/eggs.ini Fri Nov 13 17:08:12 2009 -0500 @@ -19,7 +19,7 @@ pbs_python = 2.9.4 psycopg2 = 2.0.6 pycrypto = 2.0.1 -pysqlite = 2.3.5 +pysqlite = 2.5.6 python_lzo = 1.08 threadframe = 0.2 guppy = 0.1.8 @@ -56,7 +56,7 @@ ; extra version information [tags] psycopg2 = _8.2.6_static -pysqlite = _3.5.4_static +pysqlite = _static MySQL_python = _5.0.67_static python_lzo = _static bx_python = _dev_r4bf1f32e6b76 @@ -73,7 +73,7 @@ pbs_python = http://ftp.sara.nl/pub/outgoing/pbs_python-2.9.4.tar.gz psycopg2 = http://initd.org/pub/software/psycopg/PSYCOPG-2-0/psycopg2-2.0.6.tar.gz ftp://ftp-archives.postgresql.org/pub/source/v8.2.6/postgresql-8.2.6.tar.bz2 pycrypto = http://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz -pysqlite = http://initd.org/pub/software/pysqlite/releases/2.3/2.3.5/pysqlite-2.3.5.tar... http://www.sqlite.org/sqlite-source-3_5_4.zip +pysqlite = http://pypi.python.org/packages/source/p/pysqlite/pysqlite-2.5.6.tar.gz python_lzo = http://www.oberhumer.com/opensource/lzo/download/LZO-v1/python-lzo-1.08.tar.... http://www.oberhumer.com/opensource/lzo/download/LZO-v1/lzo-1.08.tar.gz threadframe = http://www.majid.info/python/threadframe/threadframe-0.2.tar.gz guppy = http://pypi.python.org/packages/source/g/guppy/guppy-0.1.8.tar.gz diff -r db234dd18be4 -r e8a116c6bd96 scripts/scramble/scripts/pysqlite.py --- a/scripts/scramble/scripts/pysqlite.py Fri Nov 13 16:50:56 2009 -0500 +++ b/scripts/scramble/scripts/pysqlite.py Fri Nov 13 17:08:12 2009 -0500 @@ -1,18 +1,4 @@ -import os, sys, subprocess, tarfile, zipfile, shutil - -def unpack_sqlite_source(): - print "unpack_sqlite_source(): Found a previously downloaded sqlite source." - print "unpack_sqlite_source(): To force a new download, remove the archive:" - print " ", SQLITE_ARCHIVE - os.makedirs( "sqlite" ) - z = zipfile.ZipFile( SQLITE_ARCHIVE, "r" ) - for fn in z.namelist(): - if fn == "tclsqlite.c" or fn == "shell.c" or fn == "icu.c": - continue - o = open( os.path.join( "sqlite", fn ), "wb" ) - o.write( z.read( fn ) ) - o.close() - z.close() +import os, sys, shutil # change back to the build dir if os.path.dirname( sys.argv[0] ) != "": @@ -38,45 +24,19 @@ else: tag = None -SQLITE_VERSION = ( tag.split( "_" ) )[1] -SQLITE_ARCHIVE = os.path.abspath( os.path.join( "..", "..", "..", "archives", "sqlite-source-%s.zip" %SQLITE_VERSION.replace( ".", "_" ) ) ) - # clean, in case you're running this by hand from a dirty module source dir for dir in [ "build", "dist", "sqlite" ]: if os.access( dir, os.F_OK ): print "scramble_it.py: removing dir:", dir shutil.rmtree( dir ) -# build/unpack SQLite -unpack_sqlite_source() - -# changes to setup.py -file = "setup.py" -print "build(): Patching", file -if not os.access( "%s.orig" %file, os.F_OK ): - shutil.copyfile( file, "%s.orig" %file ) -i = open( "%s.orig" %file, "r" ) -o = open( file, "w" ) -for line in i.readlines(): - if line == ' "src/util.c", "src/row.c"]\n': - line += 'sources += glob.glob("./sqlite/*.c")\n' - if line == "include_dirs = []\n": - line = "include_dirs = [ './sqlite' ]\n" - if line == "define_macros = []\n": - line = "define_macros = [ ('THREADSAFE','1') ]\n" - print >>o, line, -i.close() -o.close() - -# don't want setup.cfg -os.rename( "setup.cfg", "setup.cfg.orig" ) - # tag me = sys.argv[0] sys.argv = [ me ] if tag is not None: sys.argv.append( "egg_info" ) sys.argv.append( "--tag-build=%s" %tag ) +sys.argv.append( "build_static" ) sys.argv.append( "bdist_egg" ) # go