-
Notifications
You must be signed in to change notification settings - Fork 5
/
release.py
51 lines (46 loc) · 1.53 KB
/
release.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
import os
CLASSIFIERS = """\
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved
Programming Language :: Python
Topic :: Software Development
Topic :: Scientific/Engineering
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
"""
NAME = 'numscons'
MAJOR = 0
MINOR = 12
MICRO = 1
DEV = True
DESCRIPTION = 'Enable to use scons within distutils to build extensions'
LICENSE = 'BSD 3-clause'
CLASSIFIERS = filter(None, CLASSIFIERS.split('\n'))
AUTHOR = 'David Cournapeau'
AUTHOR_EMAIL = '[email protected]'
PACKAGES = ['numscons', 'numscons.core', 'numscons.checkers',
'numscons.tools', 'numscons.numdist',
'numscons.checkers.fortran',
'numscons.tools.intel_common']
PACKAGE_DATA = {'numscons.core' :
[os.path.join('configurations', i) for i in
['compiler.cfg', 'fcompiler.cfg', 'cxxcompiler.cfg']],
}
DATA_DIR = ['numscons/scons-local', 'numscons/configurations']
def build_verstring():
return '%d.%d.%d' % (MAJOR, MINOR, MICRO)
def build_fverstring():
if DEV:
return build_verstring() + 'dev'
else:
return build_verstring()
def write_version():
fname = os.path.join("numscons", "version.py")
f = open(fname, "w")
f.writelines("VERSION = '%s'\n" % build_verstring())
f.writelines("DEV = %s" % DEV)
f.close()