-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·64 lines (52 loc) · 1.88 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
62
63
64
from setuptools import setup, Extension
from os import path
MAJOR = 0
MINOR = 2
MICRO = 8
ISRELEASED = False
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
class get_numpy_include(object):
"""Returns Numpy's include path with lazy import"""
def __str__(self):
import numpy
return numpy.get_include()
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst')) as f:
long_description = f.read()
extensions = [Extension("pyFTracks.annealing", ["pyFTracks/annealing.pyx"]),
Extension("pyFTracks.thermal_history", ["pyFTracks/thermal_history.pyx"])]
with open('requirements.txt') as f:
requirements = f.read().splitlines()
setup(
name='pyFTracks',
setup_requires=[
'setuptools>=18.0',
'numpy',
'cython'
],
version=VERSION,
description='Fission Track Modelling and Analysis with Python',
ext_modules=extensions,
include_package_data=True,
include_dirs=[get_numpy_include()],
long_description=long_description,
url='https://github.com/rbeucher/pyFTracks.git',
author='Romain Beucher',
author_email='[email protected]',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
packages=["pyFTracks", "pyFTracks/ressources", "pyFTracks/radialplot"],
keywords='geology thermochronology fission-tracks',
install_requires=requirements,
)