Remove the deleted _scons_UserString.py file from the packaging manifest.
[scons.git] / src / engine / setup.py
1 #
2 # __COPYRIGHT__
3 #
4 # Permission is hereby granted, free of charge, to any person obtaining
5 # a copy of this software and associated documentation files (the
6 # "Software"), to deal in the Software without restriction, including
7 # without limitation the rights to use, copy, modify, merge, publish,
8 # distribute, sublicense, and/or sell copies of the Software, and to
9 # permit persons to whom the Software is furnished to do so, subject to
10 # the following conditions:
11 #
12 # The above copyright notice and this permission notice shall be included
13 # in all copies or substantial portions of the Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
16 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
17 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 #
23
24 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
25
26 import os
27 import os.path
28 import sys
29
30 (head, tail) = os.path.split(sys.argv[0])
31
32 if head:
33     os.chdir(head)
34     sys.argv[0] = tail
35
36 # Code to figure out the package name from the current directory.
37 # May come in handy to allow this setup.py to switch-hit between
38 # python-scons and python2-scons.
39 #head, package = os.path.split(os.getcwd())
40 #suffix = "-__VERSION__"
41 #if package[-len(suffix):] == suffix:
42 #    package = package[:-len(suffix)]
43
44 package = 'python-scons'
45
46 from distutils.core import setup
47
48 ver = {
49     'python-scons': '1.5',
50     'python2-scons': '2.1',
51 }
52
53 setup(name = package,
54       version = "__VERSION__",
55       description = "SCons Python %s extension modules" % ver[package],
56       long_description = """SCons is an Open Source software construction tool--that is, a build tool; an
57 improved substitute for the classic Make utility; a better way to build
58 software.""",
59       author = "Steven Knight",
60       author_email = "knight@baldmt.com",
61       url = "http://www.scons.org/",
62       licence = "MIT, freely distributable",
63       keywords = "scons, cons, make, build tool, make tool",
64       packages = ["SCons",
65                   "SCons.Node",
66                   "SCons.Scanner",
67                   "SCons.Sig",
68                   "SCons.Script"])
69
70 # Local Variables:
71 # tab-width:4
72 # indent-tabs-mode:nil
73 # End:
74 # vim: set expandtab tabstop=4 shiftwidth=4: