mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Reorganized core_pe's module folder.
--HG-- rename : core_pe/modules/block/block.c => core_pe/modules/block.c rename : core_pe/modules/cache/cache.c => core_pe/modules/cache.c rename : core_pe/modules/cache/setup.py => core_pe/modules/setup.py
This commit is contained in:
parent
0446e89bfe
commit
a7c6f47dbe
@ -18,14 +18,10 @@ def move(src, dst):
|
||||
print 'Moving %s --> %s' % (src, dst)
|
||||
os.rename(src, dst)
|
||||
|
||||
# The CC=gcc-4.0 thing is because, in Snow Leopard, gcc-4.2 can't compile these units.
|
||||
os.environ['CC'] = 'gcc-4.0'
|
||||
os.chdir(op.join('modules', 'block'))
|
||||
os.chdir('modules')
|
||||
os.system('python setup.py build_ext --inplace')
|
||||
os.chdir(op.join('..', 'cache'))
|
||||
os.system('python setup.py build_ext --inplace')
|
||||
os.chdir(op.join('..', '..'))
|
||||
move(op.join('modules', 'block', '_block.so'), '_block.so')
|
||||
move(op.join('modules', 'block', '_block.pyd'), '_block.pyd')
|
||||
move(op.join('modules', 'cache', '_cache.so'), '_cache.so')
|
||||
move(op.join('modules', 'cache', '_cache.pyd'), '_cache.pyd')
|
||||
os.chdir('..')
|
||||
move(op.join('modules', '_block.so'), '_block.so')
|
||||
move(op.join('modules', '_block.pyd'), '_block.pyd')
|
||||
move(op.join('modules', '_cache.so'), '_cache.so')
|
||||
move(op.join('modules', '_cache.pyd'), '_cache.pyd')
|
||||
|
14
core_pe/modules/cache/setup.py
vendored
14
core_pe/modules/cache/setup.py
vendored
@ -1,14 +0,0 @@
|
||||
# Created By: Virgil Dupras
|
||||
# Created On: 2009-04-23
|
||||
# Copyright 2010 Hardcoded Software (http://www.hardcoded.net)
|
||||
#
|
||||
# This software is licensed under the "HS" License as described in the "LICENSE" file,
|
||||
# which should be included with this package. The terms are also available at
|
||||
# http://www.hardcoded.net/licenses/hs_license
|
||||
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
|
||||
setup(
|
||||
ext_modules = [Extension("_cache", ["cache.c"])]
|
||||
)
|
@ -10,5 +10,8 @@ from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
|
||||
setup(
|
||||
ext_modules = [Extension("_block", ["block.c"])]
|
||||
ext_modules = [
|
||||
Extension("_block", ["block.c"]),
|
||||
Extension("_cache", ["cache.c"]),
|
||||
]
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user