-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·33 lines (26 loc) · 1.1 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
import os
import numpy
from setuptools import setup
from setuptools.extension import Extension
module1 = Extension('envi2numpy',
sources=['src/pythonwrapper.cpp', 'src/INIReader.cpp', 'src/ini.c', 'src/cnpy.cpp',
'src/envi_parser.cpp', 'src/numpy_helpers.cpp'],
include_dirs=['src',
numpy.get_include()],
extra_compile_args=['-std=c++11', '-O2'])
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(name='envi2numpy',
version='1.4',
description='Package used for reading and converting hyperspectral ENVI captures to numpy',
long_description=long_description,
long_description_content_type='text/markdown',
ext_modules=[module1],
url='https://github.com/ArendJanKramer/envi2numpy',
# Author details
author='Arend Jan Kramer',
author_email='[email protected]',
# Choose your license
license='gpl-2.0'
)