File: build_pe_modules.py

package info (click to toggle)
dupeguru 4.3.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,604 kB
  • sloc: python: 16,846; ansic: 424; makefile: 123
file content (24 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import sys
import os
import os.path as op
import shutil
import importlib

from setuptools import setup, Extension

sys.path.insert(1, op.abspath("src"))

from hscommon.build import move_all

exts = [
    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")]),
]
setup(
    script_args=["build_ext", "--inplace"],
    ext_modules=exts,
)
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"))