From 348b039fa3aed7d139ae21a7d97830acb68185e3 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 31 Jan 2010 11:25:47 +0100 Subject: [PATCH] Removed references to Cython. --- README | 3 +-- core_pe/block.py | 8 ++++---- core_pe/cache.py | 2 +- qt/pe/block.py | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README b/README index 4f9c540d..34db6ff8 100644 --- a/README +++ b/README @@ -30,7 +30,6 @@ General dependencies - Mako, to generate help files. (http://www.makotemplates.org/) - PyYaml, for help files and the build system. (http://pyyaml.org/) - Nose, to run unit tests. (http://somethingaboutorange.com/mrl/projects/nose/) -- Cython to compile a few optimized bottlenecks. (http://www.cython.org/) - Python Imaging Library for dupeGuru PE. (http://www.pythonware.com/products/pil/) OS X prerequisites @@ -44,7 +43,7 @@ OS X prerequisites Windows prerequisites --- -- Visual Studio 2008 (Express is enough) is needed to build the Cython extensions. (http://www.microsoft.com/Express/) +- Visual Studio 2008 (Express is enough) is needed to build C extensions. (http://www.microsoft.com/Express/) - PyQt 4.6 (http://www.riverbankcomputing.co.uk/news) - PyInstaller, if you want to build a exe. You don't need it if you just want to run dupeGuru. (http://www.pyinstaller.org/) - Advanced Installer, if you want to build the installer file. (http://www.advancedinstaller.com/) diff --git a/core_pe/block.py b/core_pe/block.py index 7f31e503..56649d5d 100644 --- a/core_pe/block.py +++ b/core_pe/block.py @@ -8,7 +8,7 @@ from _block import NoBlocksError, DifferentBlockCountError, avgdiff, getblocks2 -# Converted to Cython +# Converted to C # def getblock(image): # """Returns a 3 sized tuple containing the mean color of 'image'. # @@ -43,7 +43,7 @@ from _block import NoBlocksError, DifferentBlockCountError, avgdiff, getblocks2 # result.append(getblock(crop)) # return result -# Converted to Cython +# Converted to C # def getblocks2(image,block_count_per_side): # """Returns a list of blocks (3 sized tuples). # @@ -70,7 +70,7 @@ from _block import NoBlocksError, DifferentBlockCountError, avgdiff, getblocks2 # result.append(getblock(crop)) # return result -# Converted to Cython +# Converted to C # def diff(first, second): # """Returns the difference between the first block and the second. # @@ -80,7 +80,7 @@ from _block import NoBlocksError, DifferentBlockCountError, avgdiff, getblocks2 # r2, g2, b2 = second # return abs(r1 - r2) + abs(g1 - g2) + abs(b1 - b2) -# Converted to Cython +# Converted to C # def avgdiff(first, second, limit=768, min_iterations=1): # """Returns the average diff between first blocks and seconds. # diff --git a/core_pe/cache.py b/core_pe/cache.py index d44ecccd..5ff2fe32 100644 --- a/core_pe/cache.py +++ b/core_pe/cache.py @@ -20,7 +20,7 @@ def colors_to_string(colors): """ return ''.join(['%02x%02x%02x' % (r,g,b) for r,g,b in colors]) -# This function is an important bottleneck of dupeGuru PE. It has been converted to Cython. +# This function is an important bottleneck of dupeGuru PE. It has been converted to C. # def string_to_colors(s): # """Transform the string 's' in a list of 3 sized tuples. # """ diff --git a/qt/pe/block.py b/qt/pe/block.py index 76b57b41..7bdd14f9 100644 --- a/qt/pe/block.py +++ b/qt/pe/block.py @@ -8,7 +8,7 @@ from _block import getblocks -# Converted to Cython +# Converted to C # def getblock(image): # width = image.width() # height = image.height()