-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·52 lines (42 loc) · 1.79 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
#!/usr/bin/env python3
#Copyright 2007,2008,2009 Sebastian Hagen
# This file is part of gonium.
# gonium is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation
#
# gonium 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 this program. If not, see <http://www.gnu.org/licenses/>.
import distutils.util
import sys
from distutils.core import setup, Extension
if (sys.version_info[0] <= 2):
raise Exception('This gonium version needs a python >= 3.0')
ext_modules = [
Extension('gonium.posix._signal', sources = ['src/posix/_signalmodule.c']),
Extension('gonium.posix._aio', sources = ['src/posix/_aiomodule.c'], libraries=['rt']),
Extension('gonium.posix._blockfd', sources = ['src/posix/_blockfdmodule.c'], libraries=['pthread'])
]
#ext_modules_linux = [
# Extension('gonium.linux._io', sources = ['src/linux/_iomodule.c'], libraries=['aio'])
#]
#platform = distutils.util.get_platform()
#if (platform.startswith('linux-')):
# ext_modules += ext_modules_linux
#else:
# print('Platform is {0!a}, skipping linux-specific modules.'.format(platform))
setup(name='gonium',
version='0.6',
description='Gonium baselib',
author='Sebastian Hagen',
author_email='[email protected]',
url='http://git.memespace.net/git/gonium.git',
packages=('gonium', 'gonium.fdm', 'gonium.dns_resolving', 'gonium.hacks', 'gonium.fdm.ed', 'gonium.posix', 'gonium.linux'),
ext_modules=ext_modules,
package_dir={'gonium':'src'}
)