-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
89 lines (80 loc) · 2.88 KB
/
setup.py
File metadata and controls
89 lines (80 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import sys
from setuptools import setup, Extension
# in comparison to v1.3.0 i have removed the excel dependecnies on openpyxl (reason: it was crashing a lot)
# now the python package is totally dependent upon csv output
#read the long description from README
try:
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
except FileNotFoundError:
long_description = (
"A fast native C recursive file scanner and analyzer "
"with tree, JSON, CSV export and advanced analytics."
)
# Detect platform-specific compiler optimization and linking flags
if sys.platform == "win32":
# MSVC optimizations and strict warnings
extra_compile_args = ['/O2', '/W4']
extra_link_args = []
else:
# Aggressive POSIX optimizations (GCC/Clang)
extra_compile_args = [
'-O3',
'-march=native',
'-Wall',
'-Wextra',
'-Wno-unused-parameter',
]
extra_link_args = ['-pthread']
module = Extension(
'anscom',
sources=['anscom.c'],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
)
setup(
name='anscom',
version='1.5.0',
author='Aditya Narayan Singh',
author_email='adityansdsdc@outlook.com',
description=(
'High-performance native C recursive file scanner: '
'multi-threaded, terabyte-scale, with CSV/JSON/Tree export, '
'duplicate detection, largest-N report, and regex filtering.'
),
long_description=long_description,
long_description_content_type="text/markdown",
# Primary links shown on PyPI
url='https://github.com/PC5518/anscom-nfie-python-extension',
project_urls={
"Homepage": "https://anscomqs.github.io/anscom/",
"Source": "https://github.com/PC5518/anscom-nfie-python-extension",
"Bug Tracker": "https://github.com/PC5518/anscom-nfie-python-extension/issues",
},
ext_modules=[module],
# No hard dependencies — anscom core is pure C
install_requires=[],
# Optional dependencies
extras_require={
# pip install anscom[all]
"all": [],
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: C",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: System :: Filesystems",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Development Status :: 5 - Production/Stable",
],
python_requires='>=3.6',
keywords=[
'filesystem', 'scanner', 'file-analysis', 'directory',
'recursive', 'multithreaded', 'C-extension', 'duplicate-detection',
'disk-usage', 'audit', 'enterprise'
],
)