This repository has been archived by the owner on Jun 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·63 lines (54 loc) · 2.09 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
#!/usr/bin/env python
#
# This file is part of SharedArray.
# Copyright (C) 2014-2016 Mathieu Mirmont <[email protected]>
#
# SharedArray is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# SharedArray is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SharedArray. If not, see <http://www.gnu.org/licenses/>.
from distutils.core import setup, Extension
from glob import glob
from os import path
import numpy
here = path.abspath(path.dirname(__file__))
def read(fname):
return open(path.join(here, fname)).read()
setup(name = 'SharedArray',
version = '1.0',
# Description
description = 'Share numpy arrays between processes',
long_description = read('README.md'),
# Contact
author = 'Mathieu Mirmont',
author_email = '[email protected]',
url = 'http://parad0x.org/git/python/shared-array/about',
# License
license = 'https://www.gnu.org/licenses/gpl-2.0.html',
# Extras for pip
keywords = 'numpy array shared memory shm',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: C',
'Topic :: Scientific/Engineering'
],
# Compilation
ext_modules = [
Extension('SharedArray',
glob(path.join(here, 'src', '*.c')),
libraries = [ 'rt' ],
include_dirs=[numpy.get_include()])
])