From 0879bdd88c4241445e7989811e093b6c7af2696b Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 30 Dec 2011 16:08:32 +0000 Subject: [PATCH] Add setup.py file Based on the file from master branch with slight modifications. --- setup.py | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100755 setup.py diff --git a/setup.py b/setup.py new file mode 100755 index 000000000..e66c19ecc --- /dev/null +++ b/setup.py @@ -0,0 +1,76 @@ +#! /usr/bin/env python + +import os, sys +from distutils.core import setup, Extension + +try: + # load py2exe distutils extension, if available + import py2exe +except ImportError: + pass + +try: + import numpy +except ImportError: + print "*** Warning: FontTools needs the numpy library for some operations, see:" + print " http://numpy.scipy.org/" + +try: + import fontTools +except ImportError: + print "*** Warning: RoboFab needs FontTools for some operations, see:" + print " http://sourceforge.net/projects/fonttools/" + + +if sys.version_info > (2, 3, 0, 'alpha', 1): + # Trove classifiers for PyPI + classifiers = {"classifiers": [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Environment :: Other Environment", + "Intended Audience :: Developers", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: BSD License", + "Natural Language :: English", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Topic :: Multimedia :: Graphics", + "Topic :: Multimedia :: Graphics :: Graphics Conversion", + ]} +else: + classifiers = {} + +long_description = """\ +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. +""" + +setup( + name = "robofab", + version = "1.2", + description = "Tools to manipulate font sources", + author = "Just van Rossum, Tal Leming, Erik van Blokland, others", + author_email = "info@robofab.com", + maintainer = "Just van Rossum, Tal Leming, Erik van Blokland", + maintainer_email = "info@robofab.com", + url = "http://robofab.com/", + license = "OpenSource, BSD-style", + platforms = ["Any"], + long_description = long_description, + + packages = [ + "", + "robofab", + "robofab.interface", + "robofab.interface.mac", + "robofab.interface.win", + "robofab.interface.all", + "robofab.misc", + "robofab.objects", + "robofab.pens", + "robofab.tools", + "ufoLib", + ], + package_dir = {'': 'Lib'}, + #extra_path = 'FontTools', + **classifiers + )