-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
executable file
·52 lines (50 loc) · 1.92 KB
/
setup.py
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
#!/usr/bin/env python3
import platform
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
long_desc = """This is a C extension module for Python which
implements extended attributes manipulation. It is a wrapper on top
of the attr C library - see attr(5)."""
version = "0.8.1"
author = "Iustin Pop"
author_email = "[email protected]"
libraries = []
macros = [
("_XATTR_VERSION", '"%s"' % version),
("_XATTR_AUTHOR", '"%s"' % author),
("_XATTR_EMAIL", '"%s"' % author_email),
]
setup(name = "pyxattr",
version = version,
description = "Filesystem extended attributes for python",
long_description = long_desc,
author = author,
author_email = author_email,
url = "https://pyxattr.k1024.org/",
download_url = "https://pyxattr.k1024.org/downloads/",
license = "LGPL",
ext_modules = [Extension("xattr", ["xattr.c"],
libraries=libraries,
define_macros=macros,
extra_compile_args=["-Wall", "-Werror", "-Wsign-compare"],
)],
platforms = ["Linux"],
python_requires = ">=3.7",
project_urls={
"Bug Tracker": "https://github.com/iustin/pyxattr/issues",
},
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Filesystems",
]
)