-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
61 lines (56 loc) · 1.97 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
53
54
55
56
57
58
59
60
61
from pathlib import Path
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
long_description = (Path(__file__).parent / "README.md").read_text()
class BuildExt(build_ext):
def build_extensions(self):
if self.compiler.compiler_type != "msvc":
for ext in self.extensions:
ext.extra_compile_args.append("-std=c99")
build_ext.build_extensions(self)
setup(
name="dectris-compression",
version="0.3.1",
description="DECTRIS compression algorithms",
long_description=long_description,
long_description_content_type="text/markdown",
author="Kal Conley",
author_email="kal.conley@dectris.com",
url="https://github.com/dectris/compression",
package_dir={"": "python"},
packages=["dectris"],
ext_modules=[
Extension(
name="dectris.compression",
sources=[
"python/dectris/compression.c",
"src/compression.c",
"third_party/bitshuffle/src/bitshuffle.c",
"third_party/lz4/lib/lz4.c",
],
include_dirs=[
".",
"third_party",
"third_party/lz4/lib",
],
)
],
cmdclass={"build_ext": BuildExt},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
],
license="MIT",
keywords=["compression", "dectris"],
)