-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
54 lines (50 loc) · 2.4 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
from setuptools import setup, Command, Extension
version = '0.8.9.dev1'
svnrevision = '5781'
setup(
name="pycodcif",
version=version,
author="COD development team",
description="COD CIF parser",
long_description="COD parser for CIF1.1 and CIF2.0 formats",
author_email="grazulis@ibt.lt",
maintainer="Andrius Merkys",
maintainer_email="andrius.merkys@gmail.com",
packages=['pycodcif'],
package_dir={'pycodcif': 'cod-tools/src/components/pycodcif'},
url="http://wiki.crystallography.net/cod-tools/CIF-parser",
license="GPLv2",
ext_modules=[
Extension('pycodcif._pycodcif',
['cod-tools/src/externals/cexceptions/cxprintf.c',
'cod-tools/src/externals/cexceptions/stringx.c',
'cod-tools/src/externals/cexceptions/allocx.c',
'cod-tools/src/externals/cexceptions/stdiox.c',
'cod-tools/src/externals/cexceptions/cexceptions.c',
'cod-tools/src/components/codcif/cif_options.c',
'cod-tools/src/components/codcif/common.c',
'cod-tools/src/components/codcif/ciftable.c',
'cod-tools/src/components/codcif/cif2_lexer.c',
'cod-tools/src/components/codcif/cifvalue.c',
'cod-tools/src/components/codcif/cifmessage.c',
'cod-tools/src/components/codcif/cif_grammar_flex.c',
'cod-tools/src/components/codcif/cif_lexer.c',
'cod-tools/src/components/codcif/cif.c',
'cod-tools/src/components/codcif/datablock.c',
'cod-tools/src/components/codcif/cif_compiler.c',
'cod-tools/src/components/codcif/ciflist.c',
'cod-tools/src/components/codcif/cif_grammar.tab.c',
'cod-tools/src/components/codcif/cif2_grammar.tab.c',
'cod-tools/src/components/pycodcif/pycodcif.c',
'cod-tools/src/components/pycodcif/pycodcif_wrap.c'],
define_macros=[
('_YACC_',None),
('YYDEBUG','1'),
('SVN_VERSION',svnrevision),
],
include_dirs=['cod-tools/src/externals/cexceptions',
'cod-tools/src/components/codcif']),
],
test_suite='nose.collector',
tests_require=['nose'],
)