2012-07-11 16:22:00 +00:00
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
import os.path as op
|
|
|
|
import shutil
|
|
|
|
import importlib
|
|
|
|
|
|
|
|
from setuptools import setup, Extension
|
|
|
|
|
2021-08-15 09:10:18 +00:00
|
|
|
sys.path.insert(1, op.abspath("src"))
|
2012-07-11 16:22:00 +00:00
|
|
|
|
|
|
|
from hscommon.build import move_all
|
|
|
|
|
|
|
|
exts = [
|
2021-08-15 09:10:18 +00:00
|
|
|
Extension("_block", [op.join("modules", "block.c"), op.join("modules", "common.c")]),
|
|
|
|
Extension("_cache", [op.join("modules", "cache.c"), op.join("modules", "common.c")]),
|
|
|
|
Extension("_block_qt", [op.join("modules", "block_qt.c")]),
|
2012-07-11 16:22:00 +00:00
|
|
|
]
|
|
|
|
setup(
|
2021-08-15 09:10:18 +00:00
|
|
|
script_args=["build_ext", "--inplace"],
|
|
|
|
ext_modules=exts,
|
2012-07-11 16:22:00 +00:00
|
|
|
)
|
2021-08-15 09:10:18 +00:00
|
|
|
move_all("_block_qt*", op.join("src", "qt", "pe"))
|
|
|
|
move_all("_cache*", op.join("src", "core/pe"))
|
|
|
|
move_all("_block*", op.join("src", "core/pe"))
|