-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
41 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
41
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from setuptools import setup
from setuptools.command.build_ext import build_ext as _build_ext
class build_ext(_build_ext):
def finalize_options(self):
_build_ext.finalize_options(self)
# Prevent numpy from thinking it is still in its setup process:
__builtins__.__NUMPY_SETUP__ = False
import numpy
self.include_dirs.append(numpy.get_include())
version = re.search(
'^__version__\s*=\s*\'(.*)\'',
open('beam_carbon/beam.py').read(),
re.M
).group(1)
with open('README.md', 'rb') as f:
long_description = f.read().decode('utf-8')
setup(
name='beam_carbon',
packages=['beam_carbon'],
entry_points={
'console_scripts': ['beam_carbon = beam_carbon.beam:main']
},
license='GPLv3',
version=version,
description='Python command line application for running the BEAM carbon cycle.',
long_description=long_description,
author='Nathan Matteson',
author_email='matteson@obstructures.org',
url='',
cmdclass={'build_ext': build_ext},
setup_requires=['numpy'],
)