forked from sagemath/sage_sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (44 loc) · 1.61 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
from setuptools import setup
from codecs import open # To use a consistent encoding
from os import path
# The next block is if there are some cython files
from setuptools import Extension
from Cython.Build import cythonize
import Cython.Compiler.Options
from sage.env import sage_include_directories
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(here, 'VERSION'), encoding='utf-8') as f:
version = f.read().strip()
# Cython modules
ext_modules = [
Extension('sage_sample.dirichlet',
sources = [path.join('sage_sample','dirichlet.pyx')],
include_dirs=sage_include_directories())
]
setup(name='sage_sample',
version=version,
description="Basic Sage Optional Package",
long_description=long_description,
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Mathematics',
],
keywords='sagemath',
#keywords='sagemath combinatorics geometry symbolic dynamics',
author='Sebastien Labbe',
author_email='[email protected]',
url='https://github.com/nthiery/sage_sample',
license = "GPL",
packages=['sage_sample'],
ext_modules=cythonize(ext_modules),
)