2021-08-18 09:12:38 +00:00
|
|
|
from setuptools import setup, Extension
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
exts = [
|
|
|
|
Extension(
|
2021-08-26 08:29:24 +00:00
|
|
|
"core.pe._block",
|
2021-08-18 09:12:38 +00:00
|
|
|
[
|
|
|
|
str(Path("core", "pe", "modules", "block.c")),
|
|
|
|
str(Path("core", "pe", "modules", "common.c")),
|
|
|
|
],
|
|
|
|
include_dirs=[str(Path("core", "pe", "modules"))],
|
|
|
|
),
|
|
|
|
Extension(
|
2021-08-26 08:29:24 +00:00
|
|
|
"core.pe._cache",
|
2021-08-18 09:12:38 +00:00
|
|
|
[
|
|
|
|
str(Path("core", "pe", "modules", "cache.c")),
|
|
|
|
str(Path("core", "pe", "modules", "common.c")),
|
|
|
|
],
|
|
|
|
include_dirs=[str(Path("core", "pe", "modules"))],
|
|
|
|
),
|
2021-08-26 08:29:24 +00:00
|
|
|
Extension("qt.pe._block_qt", [str(Path("qt", "pe", "modules", "block.c"))]),
|
2021-08-18 09:12:38 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
headers = [str(Path("core", "pe", "modules", "common.h"))]
|
|
|
|
|
2021-08-26 08:29:24 +00:00
|
|
|
setup(ext_modules=exts, headers=headers)
|