root/trunk/setup.py

Revision 538, 2.1 kB (checked in by erik, 5 months ago)

Tentative checkin of a setup.py for robofab. I've had this for years and it has been distributed, not sure why it's not part of the svn.

  • Property svn:executable set to *
Line 
1 #! /usr/bin/env python
2
3 import os, sys
4 from distutils.core import setup, Extension
5
6 try:
7         # load py2exe distutils extension, if available
8         import py2exe
9 except ImportError:
10         pass
11
12 try:
13         import numpy
14 except ImportError:
15         print "*** Warning: FontTools needs the numpy library for some operations, see:"
16         print "        http://numpy.scipy.org/"
17
18 try:
19         import fontTools
20 except ImportError:
21         print "*** Warning: RoboFab needs FontTools for some operations, see:"
22         print "        http://sourceforge.net/projects/fonttools/"
23
24
25 if sys.version_info > (2, 3, 0, 'alpha', 1):
26         # Trove classifiers for PyPI
27         classifiers = {"classifiers": [
28                 "Development Status :: 4 - Beta",
29                 "Environment :: Console",
30                 "Environment :: Other Environment",
31                 "Intended Audience :: Developers",
32                 "Intended Audience :: End Users/Desktop",
33                 "License :: OSI Approved :: BSD License",
34                 "Natural Language :: English",
35                 "Operating System :: OS Independent",
36                 "Programming Language :: Python",
37                 "Topic :: Multimedia :: Graphics",
38                 "Topic :: Multimedia :: Graphics :: Graphics Conversion",
39         ]}
40 else:
41         classifiers = {}
42
43 long_description = """\
44 RoboFab is a Python library with objects that deal with data usually associated with fonts and type design. RoboFab reads and writes UFO font files and works in any Python 2.3 (and 2.2.1), 2.4. 2.5, 2.6, 2.7. The RoboFab code for FontLab works in in FontLab 4.6, FontLab Studio 5.04, 5.1 and hopefully up.
45 """
46
47 setup(
48                 name = "robofab",
49                 version = "1.2",
50                 description = "Tools to manipulate font sources",
51                 author = "Just van Rossum, Tal Leming, Erik van Blokland, others",
52                 author_email = "info@robofab.com",
53                 maintainer = "Just van Rossum, Tal Leming, Erik van Blokland",
54                 maintainer_email = "info@robofab.com",
55                 url = "http://robofab.com/",
56                 license = "OpenSource, BSD-style",
57                 platforms = ["Any"],
58                 long_description = long_description,
59                
60                 packages = [
61                         "",
62                         "robofab",
63                         "robofab.interface",
64                         "robofab.interface.mac",
65                         "robofab.interface.win",
66                         "robofab.interface.all",
67                         "robofab.misc",
68                         "robofab.objects",
69                         "robofab.path",
70                         "robofab.pens",
71                         "robofab.tools",
72                 ],
73                 package_dir = {'': 'Lib'},
74                 #extra_path = 'FontTools',
75                 **classifiers
76         )
Note: See TracBrowser for help on using the browser.