-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
40 lines (35 loc) · 1.11 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
import setuptools
from os.path import dirname, isdir, join
import os
import re
import subprocess
import sys
sys.path.append('hdf5maker')
from version import get_version
import numpy as np
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
c_ext = setuptools.Extension("_hdf5maker",
sources = ["src/raw_file.c", "src/hdf5maker.c"],
libraries = ['c',],
include_dirs=[np.get_include(),],
extra_compile_args = [],
)
setuptools.setup(
name="hdf5maker",
version= '2024.2.9.dev0',
author="Erik Frojdh",
author_email="[email protected]",
description="Eiger raw file to hdf5 converter",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/slsdetectorgroup/hdf5maker",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GPL License",
"Operating System :: OS Independent",
],
ext_modules=[c_ext],
python_requires='>=3.9',
)