mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Add files for more standardized build tools
- Prior investigation into linux packaging (not using pyinstaller) suggested having setuptools files could make packaging easier and automatable - Add setup.cfg and setup.py as initial starting point - Add MANIFEST.in (at least temporarily) Currently with the python build module this almost works for main application. It does not include all the extra data files right now.
This commit is contained in:
29
setup.py
Normal file
29
setup.py
Normal file
@@ -0,0 +1,29 @@
|
||||
from setuptools import setup, Extension
|
||||
from pathlib import Path
|
||||
|
||||
exts = [
|
||||
Extension(
|
||||
"_block",
|
||||
[
|
||||
str(Path("core", "pe", "modules", "block.c")),
|
||||
str(Path("core", "pe", "modules", "common.c")),
|
||||
],
|
||||
include_dirs=[str(Path("core", "pe", "modules"))],
|
||||
),
|
||||
Extension(
|
||||
"_cache",
|
||||
[
|
||||
str(Path("core", "pe", "modules", "cache.c")),
|
||||
str(Path("core", "pe", "modules", "common.c")),
|
||||
],
|
||||
include_dirs=[str(Path("core", "pe", "modules"))],
|
||||
),
|
||||
Extension("_block_qt", [str(Path("qt", "pe", "modules", "block.c"))]),
|
||||
]
|
||||
|
||||
headers = [str(Path("core", "pe", "modules", "common.h"))]
|
||||
|
||||
setup(
|
||||
ext_modules=exts,
|
||||
headers=headers,
|
||||
)
|
||||
Reference in New Issue
Block a user