1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-03-10 05:34:36 +00:00

Fixed the building process of the block module for Qt.

This commit is contained in:
Virgil Dupras 2010-08-21 16:04:23 +01:00
parent 8e5c2a8875
commit 33f372f6c6
3 changed files with 5 additions and 5 deletions

View File

@ -105,8 +105,8 @@ def build_pe_modules(ui):
move('_block_osx.so', op.join('core_pe', '_block_osx.so')) move('_block_osx.so', op.join('core_pe', '_block_osx.so'))
move('_cache.so', op.join('core_pe', '_cache.so')) move('_cache.so', op.join('core_pe', '_cache.so'))
move('_cache.pyd', op.join('core_pe', '_cache.pyd')) move('_cache.pyd', op.join('core_pe', '_cache.pyd'))
move('_block_qt.so', op.join('qt', 'pe', '_block.so')) move('_block_qt.so', op.join('qt', 'pe', '_block_qt.so'))
move('_block_qt.pyd', op.join('qt', 'pe', '_block.pyd')) move('_block_qt.pyd', op.join('qt', 'pe', '_block_qt.pyd'))
def main(): def main():
conf = yaml.load(open('conf.yaml')) conf = yaml.load(open('conf.yaml'))

View File

@ -6,7 +6,7 @@
# which should be included with this package. The terms are also available at # which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/hs_license # http://www.hardcoded.net/licenses/hs_license
from _block import getblocks from _block_qt import getblocks
# Converted to C # Converted to C
# def getblock(image): # def getblock(image):

View File

@ -159,7 +159,7 @@ static PyMethodDef BlockMethods[] = {
static struct PyModuleDef BlockDef = { static struct PyModuleDef BlockDef = {
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"_block", "_block_qt",
NULL, NULL,
-1, -1,
BlockMethods, BlockMethods,
@ -170,7 +170,7 @@ static struct PyModuleDef BlockDef = {
}; };
PyObject * PyObject *
PyInit__block(void) PyInit__block_qt(void)
{ {
PyObject *m = PyModule_Create(&BlockDef); PyObject *m = PyModule_Create(&BlockDef);
if (m == NULL) { if (m == NULL) {