forked from pyccel/pyccel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (47 loc) · 1.41 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
# -*- coding: UTF-8 -*-
#! /usr/bin/python
from pathlib import Path
from setuptools import setup, find_packages
# ...
# Read library version into '__version__' variable
path = Path(__file__).parent / 'pyccel' / 'version.py'
exec(path.read_text())
# ...
NAME = 'pyccel'
VERSION = __version__
AUTHOR = 'Pyccel development team'
EMAIL = 'pyccel@googlegroups.com'
URL = 'https://github.com/pyccel/pyccel'
DESCR = 'Python extension language using accelerators.'
KEYWORDS = ['math']
LICENSE = "LICENSE"
setup_args = dict(
name = NAME,
version = VERSION,
description = DESCR,
long_description = open('README.rst').read(),
author = AUTHOR,
author_email = EMAIL,
license = LICENSE,
keywords = KEYWORDS,
url = URL,
)
# ...
packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
# ...
# Dependencies
install_requires = [
'numpy',
'sympy>=1.2',
'termcolor',
'textx>=1.6',
'filelock'
]
def setup_package():
setup(packages=packages, \
include_package_data=True, \
install_requires=install_requires, \
entry_points={'console_scripts': ['pyccel = pyccel.commands.console:pyccel', 'pyccel-clean = pyccel.commands.pyccel_clean:pyccel_clean_command']}, \
**setup_args)
if __name__ == "__main__":
setup_package()